]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
pc: Remove PCLMULQDQ from Westmere on pc-*-1.4 and older
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 9 Aug 2013 14:11:36 +0000 (11:11 -0300)
committerAndreas Färber <afaerber@suse.de>
Tue, 13 Aug 2013 17:18:02 +0000 (19:18 +0200)
Commit 41cb383f42d0cb51d8e3e25e3ecebc954dd4196f made a guest-visible
change by adding the PCLMULQDQ bit to Westmere without adding
compatibility code to keep the ABI for older machine-types.
Fix it by adding the missing compat code.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
(cherry picked from commit 56383703c060777fd01aaf8d63d5f46d660e9fb9)

Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/i386/pc_piix.c
hw/i386/pc_q35.c

index 06416ce74f410c8ffbe42e675eb0c2154090acf9..aa03436d05aeedcbaf7d23414a9e66ababef6364 100644 (file)
@@ -250,6 +250,7 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
 {
     has_pvpanic = false;
     x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
+    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
     pc_init_pci(args);
 }
 
index 7888dfe03fc188e18c36608c1468a947b3308196..1cceeb08a179161cd7f66a1036bc19145ca2ef79 100644 (file)
@@ -212,6 +212,7 @@ static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
 {
     has_pvpanic = false;
     x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
+    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
     pc_q35_init(args);
 }