From: Haibo Xu <haibo...@linaro.org> Up to now virt support on guest has been only supported with TCG. Now it becomes feasible to use it with KVM acceleration.
Signed-off-by: Haibo Xu <haibo...@linaro.org> Signed-off-by: Miguel Luis <miguel.l...@oracle.com> Signed-off-by: Eric Auger <eric.au...@redhat.com> --- v1 -> v2: - fixed test ordering: virt && ((kvm && !kvm_el2) || hvf) [Richard] - tweeked the commit title & message --- hw/arm/virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 5214aca898..ae7ac07301 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2109,7 +2109,8 @@ static void machvirt_init(MachineState *machine) exit(1); } - if (vms->virt && (kvm_enabled() || hvf_enabled())) { + if (vms->virt && + ((kvm_enabled() && !kvm_arm_el2_supported()) || hvf_enabled())) { error_report("mach-virt: %s does not support providing " "Virtualization extensions to the guest CPU", current_accel_name()); -- 2.41.0