|
|
9ae3a8 |
From 2986c1070e031d290c268fba039e3eac97b28467 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 21 Aug 2014 19:58:17 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 2/3] pc: Add Broadwell CPUID compatibility bits
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1408651097-24190-3-git-send-email-ehabkost@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 60671
|
|
|
9ae3a8 |
O-Subject: [RHEL7.1 qemu-kvm PATCH 2/2] pc: Add Broadwell CPUID compatibility bits
|
|
|
9ae3a8 |
Bugzilla: 1116117
|
|
|
9ae3a8 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
On RHEL-6, the Broadwell CPU model won't have the RDTSCP and SMAP
|
|
|
9ae3a8 |
features. Add compatibility code to ensure we stay compatible when
|
|
|
9ae3a8 |
migrating from RHEL-6.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/pc_piix.c | 4 ++++
|
|
|
9ae3a8 |
1 file changed, 4 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
index 550acd8..4ea3f67 100644
|
|
|
9ae3a8 |
--- a/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
+++ b/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
@@ -935,6 +935,10 @@ static void pc_compat_rhel650(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
CPUID_EXT2_CX8 | CPUID_EXT2_MCE | CPUID_EXT2_PAE | CPUID_EXT2_MSR |
|
|
|
9ae3a8 |
CPUID_EXT2_TSC | CPUID_EXT2_PSE | CPUID_EXT2_DE | CPUID_EXT2_FPU,
|
|
|
9ae3a8 |
0);
|
|
|
9ae3a8 |
+ x86_cpu_compat_set_features("Broadwell", FEAT_8000_0001_EDX,
|
|
|
9ae3a8 |
+ 0, CPUID_EXT2_RDTSCP);
|
|
|
9ae3a8 |
+ x86_cpu_compat_set_features("Broadwell", FEAT_7_0_EBX,
|
|
|
9ae3a8 |
+ 0, CPUID_7_0_EBX_SMAP);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* RHEL-6 kernel never supported exposing RDTSCP */
|
|
|
9ae3a8 |
x86_cpu_compat_set_features(NULL, FEAT_8000_0001_EDX, 0, CPUID_EXT2_RDTSCP);
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|