[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 5/5] arm/virt: provide virtualization extensions to the guest
From: |
Miguel Luis |
Subject: |
[RFC PATCH 5/5] arm/virt: provide virtualization extensions to the guest |
Date: |
Mon, 27 Feb 2023 15:37:18 -0100 |
From: Haibo Xu <haibo.xu@linaro.org>
VHE enablement if host supports EL2.
Ref:
https://lore.kernel.org/qemu-devel/b7c2626e6c720ccc43e57197dff3dac72d613640.1616052890.git.haibo.xu@linaro.org/
Signed-off-by: Haibo Xu <haibo.xu@linaro.org>
Signed-off-by: Miguel Luis <miguel.luis@oracle.com>
---
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 377181e009..7103aecf3f 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2093,7 +2093,8 @@ static void machvirt_init(MachineState *machine)
exit(1);
}
- if (vms->virt && (kvm_enabled() || hvf_enabled())) {
+ if (vms->virt && (kvm_enabled() || hvf_enabled())
+ && !kvm_arm_el2_supported()) {
error_report("mach-virt: %s does not support providing "
"Virtualization extensions to the guest CPU",
kvm_enabled() ? "KVM" : "HVF");
--
2.39.2
- [RFC PATCH 0/5] QEMU v7.2.0 aarch64 Nested Virtualization Support, Miguel Luis, 2023/02/27
- [RFC PATCH 1/5] linux-headers: [kvm, arm64] add the necessary definitions to match host kernel, Miguel Luis, 2023/02/27
- [RFC PATCH 2/5] hw/intc/gicv3: add support for setting KVM vGIC maintenance IRQ, Miguel Luis, 2023/02/27
- [RFC PATCH 3/5] target/arm/kvm: add helper to detect EL2 when using KVM, Miguel Luis, 2023/02/27
- [RFC PATCH 4/5] target/arm: enable feature ARM_FEATURE_EL2 if EL2 is supported, Miguel Luis, 2023/02/27
- [RFC PATCH 5/5] arm/virt: provide virtualization extensions to the guest,
Miguel Luis <=