OSDN Git Service

hw/arm/virt: Disable highmem devices that don't fit in the PA range
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jan 2022 14:07:40 +0000 (14:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 11:47:53 +0000 (11:47 +0000)
commitd9afe24c29a0985b29d7535b2f1615affbd1a888
tree1d7e33949ec7626e71337e4d8b47fd2199a4c6cc
parent3715c251cc781b263fbd7f7c535fde7a4da401c3
hw/arm/virt: Disable highmem devices that don't fit in the PA range

In order to only keep the highmem devices that actually fit in
the PA range, check their location against the range and update
highest_gpa if they fit. If they don't, mark them as disabled.

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