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

2021-03-03 Thread Alistair Francis
On Sat, Feb 20, 2021 at 9:52 AM Bin Meng wrote: > > From: Bin Meng > > RV32 supports 34-bit physical address hence the maximum RAM size > should be limited. 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_siz

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

2021-02-20 Thread Bin Meng
From: Bin Meng RV32 supports 34-bit physical address hence the maximum RAM size should be limited. 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 to