OSDN Git Service

hw/arm/virt: Check the VCPU PA range in TCG mode
authorEric Auger <eric.auger@redhat.com>
Mon, 4 Mar 2019 10:13:38 +0000 (11:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Mar 2019 15:55:09 +0000 (15:55 +0000)
commit2ba956ccfa718c68ae95356fe5e7de6208cf97f0
treec4c89f63bfadd10b1e34c7e235d55eb8a09241b9
parentc9650222b8fda66e5e9e5110a0dc76c3b30eb70a
hw/arm/virt: Check the VCPU PA range in TCG mode

We are about to allow the memory map to grow beyond 1TB and
potentially overshoot the VCPU AA64MMFR0.PARANGE.

In aarch64 mode and when highmem is set, let's check the VCPU
PA range is sufficient to address the highest GPA of the memory
map.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20190304101339.25970-10-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c