target/arm/cpu64: Ensure kvm really supports aarch64=off
commitb9e758f0b5bc64b5800432c0a436dd1afc98ba33
authorAndrew Jones <drjones@redhat.com>
Fri, 2 Aug 2019 12:25:26 +0000 (2 14:25 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Aug 2019 13:02:51 +0000 (16 14:02 +0100)
tree3722d288bee7f4b26b3221862ea14884c528ab8d
parent640581a06d14e2d0d3c3ba79b916de6bc43578b0
target/arm/cpu64: Ensure kvm really supports aarch64=off

If -cpu <cpu>,aarch64=off is used then KVM must also be used, and it
and the host must support running the vcpu in 32-bit mode. Also, if
-cpu <cpu>,aarch64=on is used, then it doesn't matter if kvm is
enabled or not.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu64.c
target/arm/kvm64.c
target/arm/kvm_arm.h