yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-pc-set-level-xlevel-correctly-on-486-qemu32-CPU-mode.patch

9ae3a8
From 235601c37ce0dd3c42906d29b20c4f32b15a1b4f Mon Sep 17 00:00:00 2001
9ae3a8
From: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Date: Tue, 20 Aug 2013 15:09:46 +0200
9ae3a8
Subject: [PATCH 18/28] pc: set level/xlevel correctly on 486/qemu32 CPU models for rhel6.x
9ae3a8
9ae3a8
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
Message-id: <1377011392-9336-2-git-send-email-ehabkost@redhat.com>
9ae3a8
Patchwork-id: 53609
9ae3a8
O-Subject: [RHEL7 PATCH 1/7] pc: set level/xlevel correctly on 486/qemu32 CPU models for rhel6.x
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: not applicable
9ae3a8
  (Upstream have the new xlevel on all machine-types since v0.13)
9ae3a8
9ae3a8
Upstream commit 58012d66dc7323f48e9bad3be6d65a50ed3d76bc changed xlevel
9ae3a8
on the "qemu32" CPU model and level on "486", but we need to keep a
9ae3a8
compatible value on the rhel6.x machine-types.
9ae3a8
9ae3a8
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/pc_piix.c | 8 ++++++++
9ae3a8
 1 file changed, 8 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/pc_piix.c |    8 ++++++++
9ae3a8
 1 files changed, 8 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
9ae3a8
index 0f63290..0dc52c4 100644
9ae3a8
--- a/hw/i386/pc_piix.c
9ae3a8
+++ b/hw/i386/pc_piix.c
9ae3a8
@@ -852,6 +852,14 @@ static QEMUMachine pc_machine_rhel700 = {
9ae3a8
         .driver   = "AC97",\
9ae3a8
         .property = "use_broken_id",\
9ae3a8
         .value    = stringify(1),\
9ae3a8
+    },{\
9ae3a8
+        .driver = "qemu32-" TYPE_X86_CPU,\
9ae3a8
+        .property = "xlevel",\
9ae3a8
+        .value = stringify(0),\
9ae3a8
+    },{\
9ae3a8
+        .driver = "486-" TYPE_X86_CPU,\
9ae3a8
+        .property = "level",\
9ae3a8
+        .value = stringify(0),\
9ae3a8
     }
9ae3a8
 
9ae3a8
 static void pc_init_rhel650(QEMUMachineInitArgs *args)
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8