From 0b6ff57640a3d51a9738af553a05007a86df332e Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Fri, 5 Sep 2014 17:04:21 +1000 Subject: target-ppc: Fix kvmppc_set_compat to use negotiated cpu-version 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 Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-ppc') diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 33fb4cc9c3..0530b0b821 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -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; } -- cgit v1.2.3