diff options
| author | Joao Martins <joao.m.martins@oracle.com> | 2022-07-19 18:00:12 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-07-26 10:40:58 -0400 |
| commit | 1caab5cf86bdf02fa71079c4ca4a3c0748f39eb5 (patch) | |
| tree | 12c1ede82ceca535f04952db9c984b947e29b571 /hw/intc/ompic.c | |
| parent | 8288a8286d00e074b765f1d47ee61159ed5291fd (diff) | |
| download | focaccia-qemu-1caab5cf86bdf02fa71079c4ca4a3c0748f39eb5.tar.gz focaccia-qemu-1caab5cf86bdf02fa71079c4ca4a3c0748f39eb5.zip | |
i386/pc: bounds check phys-bits against max used GPA
Calculate max *used* GPA against the CPU maximum possible address and error out if the former surprasses the latter. This ensures max used GPA is reacheable by configured phys-bits. Default phys-bits on Qemu is TCG_PHYS_ADDR_BITS (40) which is enough for the CPU to address 1Tb (0xff ffff ffff) or 1010G (0xfc ffff ffff) in AMD hosts with IOMMU. This is preparation for AMD guests with >1010G, where it will want relocate ram-above-4g to be after 1Tb instead of 4G. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Acked-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20220719170014.27028-10-joao.m.martins@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/intc/ompic.c')
0 files changed, 0 insertions, 0 deletions