cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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