cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From 4806c6609872f4b642da379b7d7e54e9b0f9c09f Mon Sep 17 00:00:00 2001
218e99
From: Eduardo Habkost <ehabkost@redhat.com>
218e99
Date: Mon, 16 Sep 2013 20:39:57 +0200
218e99
Subject: [PATCH 08/25] pc: RHEL-6 don't have RDTSCP
218e99
218e99
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
218e99
Message-id: <1379363997-11783-5-git-send-email-ehabkost@redhat.com>
218e99
Patchwork-id: 54399
218e99
O-Subject: [RHEL7 PATCH 4/4] pc: RHEL-6 don't have RDTSCP
218e99
Bugzilla: 918907
218e99
RH-Acked-by: Bandan Das <bsd@redhat.com>
218e99
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
218e99
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
218e99
Bugzilla: 918907
218e99
Upstream status: not applicable
218e99
  (RHEL-6-only quirk that is not going to be included upstream)
218e99
Brew build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6290888
218e99
218e99
The phenom and Opteron_G[123] CPU models don't have RDTSCP enabled on
218e99
RHEL-6, so we have to explicitly disable it on pc_init_rhel650() to keep
218e99
compatibility.
218e99
218e99
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
218e99
---
218e99
 hw/i386/pc_piix.c | 10 ++++++++++
218e99
 1 file changed, 10 insertions(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 hw/i386/pc_piix.c |   10 ++++++++++
218e99
 1 files changed, 10 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
218e99
index eb3a07d..06e9eb8 100644
218e99
--- a/hw/i386/pc_piix.c
218e99
+++ b/hw/i386/pc_piix.c
218e99
@@ -895,6 +895,16 @@ static void pc_init_rhel650(QEMUMachineInitArgs *args)
218e99
     x86_cpu_compat_set_features("Opteron_G1", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
     x86_cpu_compat_set_features("Opteron_G2", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
     x86_cpu_compat_set_features("Opteron_G3", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
218e99
+
218e99
+    x86_cpu_compat_set_features("phenom", FEAT_8000_0001_EDX,
218e99
+                                0, CPUID_EXT2_RDTSCP);
218e99
+    x86_cpu_compat_set_features("Opteron_G1", FEAT_8000_0001_EDX,
218e99
+                                0, CPUID_EXT2_RDTSCP);
218e99
+    x86_cpu_compat_set_features("Opteron_G2", FEAT_8000_0001_EDX,
218e99
+                                0, CPUID_EXT2_RDTSCP);
218e99
+    x86_cpu_compat_set_features("Opteron_G3", FEAT_8000_0001_EDX,
218e99
+                                0, CPUID_EXT2_RDTSCP);
218e99
+
218e99
     pc_init_rhel700(args);
218e99
 }
218e99
 
218e99
-- 
218e99
1.7.1
218e99