[pve-devel] [PATCH] fix: start kvm with os type other

Alexandre DERUMIER aderumier at odiso.com
Thu Aug 27 08:52:12 CEST 2015


Hi,

Seem that x2apic is now enabled by default when kvm is used

since this commit
http://git.qemu.org/?p=qemu.git;a=commit;h=ef02ef5f4536dba090b12360a6c862ef0e57e3bc

So, I think we just need to disable it for solaris

+ push @$cpuFlags , '-x2apic' if !$nokvm && $conf->{ostype} eq 'solaris'; 


(I'm not sure that this solaris bug was fixed or not)


----- Mail original -----
De: "Wolfgang Link" <w.link at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 27 Août 2015 08:01:16
Objet: [pve-devel] [PATCH] fix: start kvm with os type other

this check is necessary, because we do not set ostype in qemu config when type is other 
--- 
PVE/QemuServer.pm | 6 ++++-- 
1 file changed, 4 insertions(+), 2 deletions(-) 

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm 
index 7115007..53fbcc9 100644 
--- a/PVE/QemuServer.pm 
+++ b/PVE/QemuServer.pm 
@@ -2877,9 +2877,11 @@ sub config_to_command { 

push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64'; 

- push @$cpuFlags , '+x2apic' if !$nokvm && $conf->{ostype} ne 'solaris'; 
+ if ($conf->{ostype}) { 
+ push @$cpuFlags , '+x2apic' if !$nokvm && $conf->{ostype} ne 'solaris'; 

- push @$cpuFlags , '-x2apic' if $conf->{ostype} eq 'solaris'; 
+ push @$cpuFlags , '-x2apic' if $conf->{ostype} eq 'solaris'; 
+ } 

push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32'; 

-- 
2.1.4 


_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list