]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-ppc: Fix kvmppc_set_compat to use negotiated cpu-version
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 5 Sep 2014 07:04:21 +0000 (17:04 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:10 +0000 (23:26 +0100)
By mistake, QEMU uses the maximum compatibility level from the command
line instead of the value negotiated in client-architecture-support call.

This replaces @max_compat with @cpu_version. This only affects guests
which do not support the host CPU.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate_init.c

index 33fb4cc9c332d5bb13883daf79edee610faaeb62..0530b0b8217f04692fe154d6519470367813ad98 100644 (file)
@@ -9137,7 +9137,7 @@ int ppc_set_compat(PowerPCCPU *cpu, uint32_t cpu_version)
         break;
     }
 
-    if (kvm_enabled() && kvmppc_set_compat(cpu, cpu->max_compat) < 0) {
+    if (kvm_enabled() && kvmppc_set_compat(cpu, cpu->cpu_version) < 0) {
         error_report("Unable to set compatibility mode in KVM");
         ret = -1;
     }