]> git.proxmox.com Git - qemu-server.git/commitdiff
enable hv_vapic hyperv enlightment
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 16 Mar 2015 04:57:43 +0000 (05:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Mar 2015 07:56:51 +0000 (08:56 +0100)
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 <aderumier@odiso.com>
PVE/QemuServer.pm

index 6f0586b0d3b9812cc37de57651afb0065ad1d3c0..3189958b3f44d72374c7cca3199600f289edea08 100644 (file)
@@ -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;
            }