From 9a9ba5f857476836f40bebd4b96519776044e280 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 20 Nov 2019 15:05:20 +0100 Subject: [PATCH] get_cpu_options: reuse ostype variable Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 5c9c4477..48791b2d 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3477,8 +3477,7 @@ sub get_cpu_options { push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64' && $arch eq 'x86_64'; - push @$cpuFlags , '-x2apic' - if $conf->{ostype} && $conf->{ostype} eq 'solaris'; + push @$cpuFlags , '-x2apic' if $ostype && $ostype eq 'solaris'; push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';