fix: start kvm with os type other

this check is necessary, because we do not set ostype in qemu config when type is other

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 we just need to disable it for solaris
This commit is contained in:
Dietmar Maurer 2015-08-28 11:10:44 +02:00
parent 7f9e28e45c
commit d853f40aef

View File

@ -2877,9 +2877,8 @@ sub config_to_command {
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';
push @$cpuFlags , '-x2apic'
if $conf->{ostype} && $conf->{ostype} eq 'solaris';
push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';