cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 9913f2856aeeaa05b7b5e3188865901f79ea2166 Mon Sep 17 00:00:00 2001
9ae3a8
From: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Date: Mon, 16 Sep 2013 20:39:56 +0200
9ae3a8
Subject: [PATCH 07/25] pc: RHEL-6 had x2apic set on Opteron_G[123]
9ae3a8
9ae3a8
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Message-id: <1379363997-11783-4-git-send-email-ehabkost@redhat.com>
9ae3a8
Patchwork-id: 54401
9ae3a8
O-Subject: [RHEL7 PATCH 3/4] pc: RHEL-6 had x2apic set on Opteron_G[123]
9ae3a8
Bugzilla: 918907
9ae3a8
RH-Acked-by: Bandan Das <bsd@redhat.com>
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
From: Eduardo Habkost <ehabkost@raisama.net>
9ae3a8
9ae3a8
Bugzilla: 918907
9ae3a8
Upstream status: not applicable
9ae3a8
  (RHEL-6-only quirk that is not going to be included upstream)
9ae3a8
Brew build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6290888
9ae3a8
9ae3a8
The Opteron_G[123] CPU models had x2apic set since they were first added
9ae3a8
to RHEL-6, but they don't have it set upstream. We need to explicitly
9ae3a8
set it on pc_init_rhel650() to keep compatibility.
9ae3a8
9ae3a8
Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
9ae3a8
---
9ae3a8
 hw/i386/pc_piix.c | 4 ++++
9ae3a8
 1 file changed, 4 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/pc_piix.c |    4 ++++
9ae3a8
 1 files changed, 4 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
9ae3a8
index 6fe6ba0..eb3a07d 100644
9ae3a8
--- a/hw/i386/pc_piix.c
9ae3a8
+++ b/hw/i386/pc_piix.c
9ae3a8
@@ -891,6 +891,10 @@ static void pc_init_rhel650(QEMUMachineInitArgs *args)
9ae3a8
                                 0, CPUID_EXT2_RDTSCP);
9ae3a8
     x86_cpu_compat_set_features("Haswell", FEAT_8000_0001_EDX,
9ae3a8
                                 0, CPUID_EXT2_RDTSCP);
9ae3a8
+
9ae3a8
+    x86_cpu_compat_set_features("Opteron_G1", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
9ae3a8
+    x86_cpu_compat_set_features("Opteron_G2", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
9ae3a8
+    x86_cpu_compat_set_features("Opteron_G3", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
9ae3a8
     pc_init_rhel700(args);
9ae3a8
 }
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8