]> git.proxmox.com Git - qemu-server.git/commitdiff
add +sep cpuflags to kvm32 && kvm64 cpu models
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 15 Jul 2013 06:51:36 +0000 (08:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 15 Jul 2013 07:08:50 +0000 (09:08 +0200)
Need for win8 boot.

This flag was missing from rhel < 6.4 host kernel. It's ok now.
But it's also missing from kvm64 model. (It's exist in other cpu models, amd or intel).
So it's pretty safe to enable it.
If the host kernel is older, qemu filter the flag.

This also improve performance of winxp && win7 32 bits guests.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index f0a3c01ea09815d46e8098e0419ea866b6ef7894..ff5760f9138af9637bb62d8942706a6826b12670 100644 (file)
@@ -2398,6 +2398,8 @@ sub config_to_command {
 
     push @$cpuFlags , '+x2apic' if !$nokvm;
 
+    push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';
+
     $cpu .= ",".join(',', @$cpuFlags) if scalar(@$cpuFlags);
 
     push @$cmd, '-cpu', $cpu;