[pve-devel] [PATCH 2/3] add +sep cpuflags to kvm32 && kvm64 cpu models

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


This is needed for win8 x32 boot

(this flag exist on intel && amd, so it should be a problem).

This could also improve performance of winxp 32bit guest

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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 196ad0a..ff8883d 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2398,6 +2398,8 @@ sub config_to_command {
 
     push @$cpuFlags , '+x2apic' if !$nokvm;
 
+    push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';
+
     push @$cmd, '-cpu', $cpu.",".join(',', @$cpuFlags);
 
     push @$cmd, '-S' if $conf->{freeze};
-- 
1.7.10.4



More information about the pve-devel mailing list