yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From ddcaa23c15a4881a882686961d99fc26abb45357 Mon Sep 17 00:00:00 2001
9ae3a8
From: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Date: Mon, 16 Sep 2013 20:39:55 +0200
9ae3a8
Subject: [PATCH 06/25] pc: rhel6 doesn't have APIC on pentium* CPU models
9ae3a8
9ae3a8
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Message-id: <1379363997-11783-3-git-send-email-ehabkost@redhat.com>
9ae3a8
Patchwork-id: 54400
9ae3a8
O-Subject: [RHEL7 PATCH 2/4] pc: rhel6 doesn't have APIC on pentium* CPU models
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
  (pc-0.12 already have CPUID_APIC enabled for almost 4 years)
9ae3a8
Brew build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6290888
9ae3a8
9ae3a8
QEMU v0.13 and newer has CPUID_APIC set on pentium, pentium2, and
9ae3a8
pentium3 CPU models[1], but v0.12 (and RHEL-6) don't have it. We need to
9ae3a8
disable the flag on pc_init_rhel650() to keep compatibility.
9ae3a8
9ae3a8
[1] Upstream commit c84bd4f104098861e162be848a00d64c1fa76ed4
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 39be127..6fe6ba0 100644
9ae3a8
--- a/hw/i386/pc_piix.c
9ae3a8
+++ b/hw/i386/pc_piix.c
9ae3a8
@@ -872,6 +872,10 @@ static QEMUMachine pc_machine_rhel700 = {
9ae3a8
 
9ae3a8
 static void pc_init_rhel650(QEMUMachineInitArgs *args)
9ae3a8
 {
9ae3a8
+    x86_cpu_compat_set_features("pentium", FEAT_1_EDX, 0, CPUID_APIC);
9ae3a8
+    x86_cpu_compat_set_features("pentium2", FEAT_1_EDX, 0, CPUID_APIC);
9ae3a8
+    x86_cpu_compat_set_features("pentium3", FEAT_1_EDX, 0, CPUID_APIC);
9ae3a8
+
9ae3a8
     x86_cpu_compat_set_features("Conroe", FEAT_1_ECX, CPUID_EXT_X2APIC, 0);
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
-- 
9ae3a8
1.7.1
9ae3a8