[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/8] i386/kvm: hv-evmcs requires hv-vapic
From: |
Vitaly Kuznetsov |
Subject: |
[Qemu-devel] [PATCH 5/8] i386/kvm: hv-evmcs requires hv-vapic |
Date: |
Fri, 29 Mar 2019 15:18:29 +0100 |
Enlightened VMCS is enabled by writing to a field in VP assist page and
these require virtual APIC.
Signed-off-by: Vitaly Kuznetsov <address@hidden>
---
target/i386/kvm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index af45241adb..9edf76e473 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -1083,7 +1083,7 @@ static int hv_report_missing_dep(X86CPU *cpu, const char
*name,
return 1;
}
- if (cpu->hyperv_all) {
+ if (cpu->hyperv_all && strcmp(name, "hv-evmcs")) {
fprintf(stderr, "Hyper-V %s (requested by 'hv-all' cpu flag) "
"requires %s (is not supported by kernel)\n",
kvm_hyperv_properties[i].desc, kvm_hyperv_properties[j].desc);
@@ -1183,6 +1183,9 @@ static int hyperv_handle_properties(CPUState *cs,
if (cpu->hyperv_synic && !cpu->hyperv_synic_kvm_only &&
!cpu->hyperv_vpindex)
r |= hv_report_missing_dep(cpu, "hv-synic", "hv-vpindex");
+ if (cpu->hyperv_evmcs && !cpu->hyperv_vapic) {
+ r |= hv_report_missing_dep(cpu, "hv-evmcs", "hv-vapic");
+ }
/* Not exposed by KVM but needed to make CPU hotplug in Windows work */
env->features[FEAT_HYPERV_EDX] |= HV_CPU_DYNAMIC_PARTITIONING_AVAILABLE;
--
2.20.1
- [Qemu-devel] [PATCH 0/8] i386/kvm/hyper-v: refactor and implement 'hv-stimer-direct' and 'hv-all' enlightenments, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 8/8] i386/kvm: add support for Direct Mode for Hyper-V synthetic timers, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 6/8] i386/kvm: hv-stimer requires hv-time and hv-synic, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 1/8] i386/kvm: add support for KVM_GET_SUPPORTED_HV_CPUID, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 4/8] i386/kvm: implement 'hv-all' pass-through mode, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 2/8] i386/kvm: move Hyper-V CPUID filling to hyperv_handle_properties(), Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 3/8] i386/kvm: document existing Hyper-V enlightenments, Vitaly Kuznetsov, 2019/03/29
- [Qemu-devel] [PATCH 5/8] i386/kvm: hv-evmcs requires hv-vapic,
Vitaly Kuznetsov <=
- [Qemu-devel] [PATCH 7/8] i386/kvm: hv-tlbflush/ipi require hv-vpindex, Vitaly Kuznetsov, 2019/03/29