Re: [PATCH v2 3/4] hw/riscv: virt: Limit RAM size in a 32-bit system

2021-02-20 Thread Peter Maydell
On Fri, 19 Feb 2021 at 16:10, Bin Meng wrote: > > From: Bin Meng > > RV32 supports 34-bit physical address hence the maximum RAM size > should be limitted. Limit the RAM size to 10 GiB, which leaves > some room for PCIe high mmio space. > > For 32-bit host, this is not needed as

Re: [PATCH v2 3/4] hw/riscv: virt: Limit RAM size in a 32-bit system

2021-02-19 Thread Bin Meng
Hi Alistair, On Fri, Feb 19, 2021 at 11:39 PM Bin Meng wrote: > > From: Bin Meng > > RV32 supports 34-bit physical address hence the maximum RAM size > should be limitted. Limit the RAM size to 10 GiB, which leaves > some room for PCIe high mmio space. > > For 32-bit host, this is not needed as

[PATCH v2 3/4] hw/riscv: virt: Limit RAM size in a 32-bit system

2021-02-19 Thread Bin Meng
From: Bin Meng RV32 supports 34-bit physical address hence the maximum RAM size should be limitted. Limit the RAM size to 10 GiB, which leaves some room for PCIe high mmio space. For 32-bit host, this is not needed as machine->ram_size cannot represent a RAM size that big. Use a #if size test