From 8a054ffd818df6a0db47532dc4d04d19243c14fe Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 16 Mar 2015 05:57:43 +0100 Subject: [PATCH] enable hv_vapic hyperv enlightment works fine now with rhel 7.1 kernel https://bugzilla.redhat.com/show_bug.cgi?id=1091818 (It's wasn't working on newer intel xeon) Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6f0586b0..3189958b 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2865,9 +2865,10 @@ sub config_to_command { $ost eq 'wvista') { push @$globalFlags, 'kvm-pit.lost_tick_policy=discard'; push @$cmd, '-no-hpet'; - #push @$cpuFlags , 'hv_vapic" if !$nokvm; #fixme, my win2008R2 hang at boot with this if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3)) { push @$cpuFlags , 'hv_spinlocks=0x1fff' if !$nokvm; + push @$cpuFlags , 'hv_vapic' if !$nokvm; + } else { push @$cpuFlags , 'hv_spinlocks=0xffff' if !$nokvm; }