]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/virt.c
hw/arm/virt: Use the PA range to compute the memory map
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jan 2022 14:07:39 +0000 (14:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 11:47:53 +0000 (11:47 +0000)
commit3715c251cc781b263fbd7f7c535fde7a4da401c3
tree20904a7b9500f034dec0642c72975211b3d7752f
parent0152b169ce163b99660b80a8ed6664707e889052
hw/arm/virt: Use the PA range to compute the memory map

The highmem attribute is nothing but another way to express the
PA range of a VM. To support HW that has a smaller PA range then
what QEMU assumes, pass this PA range to the virt_set_memmap()
function, allowing it to correctly exclude highmem devices
if they are outside of the PA range.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20220114140741.1358263-5-maz@kernel.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c