[pve-devel] [PATCH 3/3] add hyper-v enlightments for windows guests

Alexandre Derumier aderumier at odiso.com
Mon Jul 8 11:40:36 CEST 2013


fixme : hv_apic seem to hang boot on my win2008R2.
Don't known if we can enable it after install or if we need to install windows first with hv_apic enable.(missing driver or something like that)

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index ff8883d..7d52605 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2364,6 +2364,12 @@ 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
+	    push @$cpuFlags , 'hv_spinlocks=0xffff' if !$nokvm;
+	}
+
+	if ($ost eq 'win7' || $ost eq 'win8') {
+	    push @$cpuFlags , 'hv_relaxed' if !$nokvm;
 	}
     }
 
-- 
1.7.10.4



More information about the pve-devel mailing list