[pve-devel] [PATCH] add +lahf_lm flag to kvm64 cpudef
Alexandre Derumier
aderumier at odiso.com
Thu Nov 28 16:34:17 CET 2013
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 50b774d..e201b4a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2451,6 +2451,8 @@ sub config_to_command {
my $cpu = $nokvm ? "qemu64" : "kvm64";
$cpu = $conf->{cpu} if $conf->{cpu};
+ push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64';
+
push @$cpuFlags , '+x2apic' if !$nokvm && $conf->{ostype} ne 'solaris';
push @$cpuFlags , '-x2apic' if $conf->{ostype} eq 'solaris';
--
1.7.10.4
More information about the pve-devel
mailing list