|
|
9ae3a8 |
From f28b055b5d576b9e5e87aa18bf655b53eff1571c Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 20 Aug 2013 15:09:51 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 23/28] pc: SandyBridge rhel6.x compat fixes
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1377011392-9336-7-git-send-email-ehabkost@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 53614
|
|
|
9ae3a8 |
O-Subject: [RHEL7 PATCH 6/7] pc: SandyBridge rhel6.x compat fixes
|
|
|
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 |
|
|
|
9ae3a8 |
This patch implements the following changes, to match the SandyBridge
|
|
|
9ae3a8 |
CPU features on RHEL-6:
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
* rhel6.3.0 and older don't have tsc-deadline on SandyBridge
|
|
|
9ae3a8 |
(commit 10ce057)
|
|
|
9ae3a8 |
* rhel6.5.0 and older don't have rdtscp on SandyBridge
|
|
|
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 846e2ce..fb5256e 100644
|
|
|
9ae3a8 |
--- a/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
+++ b/hw/i386/pc_piix.c
|
|
|
9ae3a8 |
@@ -875,6 +875,8 @@ static void pc_init_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("SandyBridge", FEAT_8000_0001_EDX,
|
|
|
9ae3a8 |
+ 0, CPUID_EXT2_RDTSCP);
|
|
|
9ae3a8 |
pc_init_rhel700(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -961,6 +963,8 @@ static void pc_init_rhel630(QEMUMachineInitArgs *args)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
disable_kvm_pv_eoi();
|
|
|
9ae3a8 |
enable_compat_apic_id_mode();
|
|
|
9ae3a8 |
+ x86_cpu_compat_set_features("SandyBridge", FEAT_1_ECX,
|
|
|
9ae3a8 |
+ 0, CPUID_EXT_TSC_DEADLINE_TIMER);
|
|
|
9ae3a8 |
pc_init_rhel640(args);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|