qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/8] i386/kvm: hv-stimer requires hv-time and hv-syn


From: Vitaly Kuznetsov
Subject: [Qemu-devel] [PATCH 6/8] i386/kvm: hv-stimer requires hv-time and hv-synic
Date: Fri, 29 Mar 2019 15:18:30 +0100

Synthetic timers operate in hv-time time and Windows won't use these
without SynIC.

Signed-off-by: Vitaly Kuznetsov <address@hidden>
---
 target/i386/kvm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 9edf76e473..524ee28e9c 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -1186,6 +1186,12 @@ static int hyperv_handle_properties(CPUState *cs,
     if (cpu->hyperv_evmcs && !cpu->hyperv_vapic) {
         r |= hv_report_missing_dep(cpu, "hv-evmcs", "hv-vapic");
     }
+    if (cpu->hyperv_stimer && !cpu->hyperv_synic) {
+        r |= hv_report_missing_dep(cpu, "hv-stimer", "hv-synic");
+    }
+    if (cpu->hyperv_stimer && !cpu->hyperv_time) {
+        r |= hv_report_missing_dep(cpu, "hv-stimer", "hv-time");
+    }
 
     /* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]