[pve-devel] [PATCH qemu-server 2/2] enable hv_synic && hv_stimer by default for qemu 2.12 && windows >= 8

Alexandre Derumier aderumier at odiso.com
Sun Jun 24 20:47:27 CEST 2018


---
 PVE/QemuServer.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 1e4ac5d..6a355f8 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6597,6 +6597,11 @@ sub add_hyperv_enlightenments {
     if ($winversion >= 7) {
 	push @$cpuFlags , 'hv_relaxed';
     }
+
+    if ($winversion >= 8 && qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 12)) {
+	push @$cpuFlags , 'hv_synic';
+	push @$cpuFlags , 'hv_stimer';
+    }
 }
 
 sub windows_version {
-- 
2.11.0




More information about the pve-devel mailing list