updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / kvm-opensuse / kvm-maccpuid.patch
blob45664d6198a05080b412a2c7c8e4fc072b7102be
1 Index: kvm-83/qemu/target-i386/helper.c
2 ===================================================================
3 --- kvm-83.orig/qemu/target-i386/helper.c
4 +++ kvm-83/qemu/target-i386/helper.c
5 @@ -29,6 +29,7 @@
6 #include "exec-all.h"
7 #include "qemu-common.h"
8 #include "kvm.h"
9 +#include "hw/boards.h"
11 #include "qemu-kvm.h"
13 @@ -1435,7 +1436,7 @@ void cpu_x86_cpuid(CPUX86State *env, uin
14 * isn't supported in compatibility mode on Intel. so advertise the
15 * actuall cpu, and say goodbye to migration between different vendors
16 * is you use compatibility mode. */
17 - if (kvm_enabled())
18 + if (kvm_enabled() && current_machine != &mac_machine)
19 host_cpuid(0, NULL, ebx, ecx, edx);
20 break;
21 case 1: