[pve-devel] [PATCH qemu-server] qemu 3.0 : add hv_synic && hv_stimer hyperv enlightment

Alexandre Derumier aderumier at odiso.com
Fri Aug 31 15:43:01 CEST 2018


This fix cpu bug on last win10 updates
---
 PVE/QemuServer.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 9bfb4a1..52b0163 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6700,6 +6700,11 @@ sub add_hyperv_enlightenments {
 
     if ($winversion >= 7) {
 	push @$cpuFlags , 'hv_relaxed';
+
+	if (qemu_machine_feature_enabled ($machine_type, $kvmver, 3, 0)) {
+	    push @$cpuFlags , 'hv_synic';
+	    push @$cpuFlags , 'hv_stimer';
+	}
     }
 }
 
-- 
2.11.0




More information about the pve-devel mailing list