Blame SOURCES/kvm-pc_piix-disable-CPUID_SEP-for-6-4-0-machine-types-and-below.patch

218e99
From dd1eabf6ba0b2a42b034f0918bf0370307983709 Mon Sep 17 00:00:00 2001
218e99
From: Bandan Das <bsd@redhat.com>
218e99
Date: Wed, 7 Aug 2013 17:28:00 +0200
218e99
Subject: pc_piix: disable CPUID_SEP for 6.4.0 machine types and below
218e99
218e99
RH-Author: Bandan Das <bsd@redhat.com>
218e99
Message-id: <jpghaf1v2an.fsf@redhat.com>
218e99
Patchwork-id: 53052
218e99
O-Subject: [PATCH RHEL-7 qemu-kvm v2] pc_piix: disable CPUID_SEP for 6.4.0 machine types and below
218e99
Bugzilla: 960216
218e99
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
218e99
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
218e99
Bugzilla : 960216
218e99
Brew : https://brewweb.devel.redhat.com/taskinfo?taskID=6140166
218e99
218e99
With c88f862d9 the SEP flag was disabled for RHEL 6.4 and below
218e99
machine types due to a kernel bug.  3af51f9^..8f38a22 enabled it
218e99
back again for RHEL 6.5 machine type. This change implements
218e99
this rhel 6 compatibility behavior
218e99
218e99
Implementation differences : Simply call x86_cpu_compat_set_features,
218e99
NULL signifies all applicable CPU models
218e99
218e99
v2 : specify correct comment range for rhel 6 commits
218e99
218e99
Signed-off-by: Bandan Das <bsd@redhat.com>
218e99
218e99
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
218e99
index bc67633..9e03e52 100644
218e99
--- a/hw/i386/pc_piix.c
218e99
+++ b/hw/i386/pc_piix.c
218e99
@@ -881,6 +881,7 @@ static QEMUMachine pc_machine_rhel650 = {
218e99
 static void pc_init_rhel640(QEMUMachineInitArgs *args)
218e99
 {
218e99
     has_pvpanic = false;
218e99
+    x86_cpu_compat_set_features(NULL, FEAT_1_EDX, 0, CPUID_SEP);
218e99
     pc_init_rhel650(args);
218e99
 }
218e99