[pve-devel] [PATCH qemu-server 13/13] don't use amd64-specific cpu options on arm
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Oct 24 10:56:49 CEST 2018
FIXME: This function needs proper reorganisation...
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
PVE/QemuServer.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index f77417f..3cfa828 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3244,7 +3244,7 @@ sub get_cpu_options {
}
}
- push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64';
+ push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64' && $arch eq 'amd64';
push @$cpuFlags , '-x2apic'
if $conf->{ostype} && $conf->{ostype} eq 'solaris';
@@ -3253,7 +3253,7 @@ sub get_cpu_options {
push @$cpuFlags, '-rdtscp' if $cpu =~ m/^Opteron/;
- if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3)) {
+ if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3) && $arch eq 'amd64') {
push @$cpuFlags , '+kvm_pv_unhalt' if $kvm;
push @$cpuFlags , '+kvm_pv_eoi' if $kvm;
@@ -3261,7 +3261,7 @@ sub get_cpu_options {
add_hyperv_enlightenments($cpuFlags, $winversion, $machine_type, $kvmver, $conf->{bios}, $gpu_passthrough) if $kvm;
- push @$cpuFlags, 'enforce' if $cpu ne 'host' && $kvm;
+ push @$cpuFlags, 'enforce' if $cpu ne 'host' && $kvm && $arch eq 'amd64';
push @$cpuFlags, 'kvm=off' if $kvm_off;
--
2.11.0
More information about the pve-devel
mailing list