thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-pc-Remove-PCLMULQDQ-from-Westmere-on-rhel6.x-machine.patch

218e99
From 6d3c6d947de6e5721d8a011789909f55ffef833f Mon Sep 17 00:00:00 2001
218e99
From: Eduardo Habkost <ehabkost@redhat.com>
218e99
Date: Tue, 20 Aug 2013 15:09:50 +0200
218e99
Subject: [PATCH 22/28] pc: Remove PCLMULQDQ from Westmere on rhel6.x machine-types
218e99
218e99
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
218e99
Message-id: <1377011392-9336-6-git-send-email-ehabkost@redhat.com>
218e99
Patchwork-id: 53612
218e99
O-Subject: [RHEL7 PATCH 5/7] pc: Remove PCLMULQDQ from Westmere on rhel6.x machine-types
218e99
Bugzilla: 918907
218e99
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
218e99
RH-Acked-by: Bandan Das <bsd@redhat.com>
218e99
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
218e99
Bugzilla: 918907
218e99
Upstream status: commit 56383703c060777fd01aaf8d63d5f46d660e9fb9
218e99
218e99
commit 41cb383f42d0cb51d8e3e25e3ecebc954dd4196f made a guest-visible
218e99
change by adding the PCLMULQDQ bit to Westmere without adding
218e99
compatibility code to keep the ABI for older machine-types.
218e99
218e99
Add the corresponding compat code to the rhel6.x machine-types (like it
218e99
was done on upstream commit 56383703c060777fd01aaf8d63d5f46d660e9fb9 for
218e99
pc-1.4).
218e99
218e99
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
218e99
---
218e99
 hw/i386/pc_piix.c | 1 +
218e99
 1 file changed, 1 insertion(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 hw/i386/pc_piix.c |    1 +
218e99
 1 files changed, 1 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
218e99
index d5dc04d..846e2ce 100644
218e99
--- a/hw/i386/pc_piix.c
218e99
+++ b/hw/i386/pc_piix.c
218e99
@@ -868,6 +868,7 @@ static void pc_init_rhel650(QEMUMachineInitArgs *args)
218e99
     x86_cpu_compat_set_features("Penryn", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
     x86_cpu_compat_set_features("Nehalem", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
     x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
+    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
218e99
     x86_cpu_compat_set_features("Westmere", FEAT_8000_0001_EDX,
218e99
              CPUID_EXT2_FXSR | CPUID_EXT2_MMX | CPUID_EXT2_PAT |
218e99
              CPUID_EXT2_CMOV | CPUID_EXT2_PGE | CPUID_EXT2_APIC |
218e99
-- 
218e99
1.7.1
218e99