|
|
1bdc94 |
From e1e6a404ee2c4833a05356378da2ffc7bdb5e6fe Mon Sep 17 00:00:00 2001
|
|
|
1bdc94 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
1bdc94 |
Date: Fri, 25 May 2018 23:38:16 +0200
|
|
|
1bdc94 |
Subject: [PATCH 5/8] pc: pc-*-rhel75.5.0 compat code
|
|
|
1bdc94 |
|
|
|
1bdc94 |
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
1bdc94 |
Message-id: <20180525233816.19506-2-ehabkost@redhat.com>
|
|
|
1bdc94 |
Patchwork-id: 80481
|
|
|
1bdc94 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 1/1] pc: pc-*-rhel75.5.0 compat code
|
|
|
1bdc94 |
Bugzilla: 1578068
|
|
|
1bdc94 |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
1bdc94 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
1bdc94 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
1bdc94 |
|
|
|
1bdc94 |
Based on the pc-*-2.11 and pc-*-2.10 compat code from upstream.
|
|
|
1bdc94 |
|
|
|
1bdc94 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
1bdc94 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
1bdc94 |
---
|
|
|
1bdc94 |
hw/i386/pc_piix.c | 2 ++
|
|
|
1bdc94 |
hw/i386/pc_q35.c | 4 ++++
|
|
|
1bdc94 |
include/hw/i386/pc.h | 13 +++++++++++++
|
|
|
1bdc94 |
3 files changed, 19 insertions(+)
|
|
|
1bdc94 |
|
|
|
1bdc94 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
1bdc94 |
index 6794bb7..7b87ef6 100644
|
|
|
1bdc94 |
--- a/hw/i386/pc_piix.c
|
|
|
1bdc94 |
+++ b/hw/i386/pc_piix.c
|
|
|
1bdc94 |
@@ -1166,6 +1166,8 @@ static void pc_machine_rhel750_options(MachineClass *m)
|
|
|
1bdc94 |
{
|
|
|
1bdc94 |
pc_machine_rhel7_options(m);
|
|
|
1bdc94 |
m->desc = "RHEL 7.5.0 PC (i440FX + PIIX, 1996)";
|
|
|
1bdc94 |
+ m->auto_enable_numa_with_memhp = false;
|
|
|
1bdc94 |
+ SET_MACHINE_COMPAT(m, PC_RHEL7_5_COMPAT);
|
|
|
1bdc94 |
}
|
|
|
1bdc94 |
|
|
|
1bdc94 |
DEFINE_PC_MACHINE(rhel750, "pc-i440fx-rhel7.5.0", pc_init_rhel750,
|
|
|
1bdc94 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
1bdc94 |
index ecd6255..1805f55 100644
|
|
|
1bdc94 |
--- a/hw/i386/pc_q35.c
|
|
|
1bdc94 |
+++ b/hw/i386/pc_q35.c
|
|
|
1bdc94 |
@@ -430,8 +430,12 @@ static void pc_q35_init_rhel750(MachineState *machine)
|
|
|
1bdc94 |
|
|
|
1bdc94 |
static void pc_q35_machine_rhel750_options(MachineClass *m)
|
|
|
1bdc94 |
{
|
|
|
1bdc94 |
+ PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
1bdc94 |
pc_q35_machine_rhel7_options(m);
|
|
|
1bdc94 |
m->desc = "RHEL-7.5.0 PC (Q35 + ICH9, 2009)";
|
|
|
1bdc94 |
+ m->auto_enable_numa_with_memhp = false;
|
|
|
1bdc94 |
+ pcmc->default_nic_model = "e1000";
|
|
|
1bdc94 |
+ SET_MACHINE_COMPAT(m, PC_RHEL7_5_COMPAT);
|
|
|
1bdc94 |
}
|
|
|
1bdc94 |
|
|
|
1bdc94 |
DEFINE_PC_MACHINE(q35_rhel750, "pc-q35-rhel7.5.0", pc_q35_init_rhel750,
|
|
|
1bdc94 |
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
|
|
|
1bdc94 |
index faddeba..e94424f 100644
|
|
|
1bdc94 |
--- a/include/hw/i386/pc.h
|
|
|
1bdc94 |
+++ b/include/hw/i386/pc.h
|
|
|
1bdc94 |
@@ -969,6 +969,19 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
|
|
|
1bdc94 |
.value = "on",\
|
|
|
1bdc94 |
},
|
|
|
1bdc94 |
|
|
|
1bdc94 |
+/* Similar to PC_COMPAT_2_11 + PC_COMPAT_2_10, but:
|
|
|
1bdc94 |
+ * - x-hv-max-vps was backported to 7.5
|
|
|
1bdc94 |
+ * - x-pci-hole64-fix was backported to 7.5
|
|
|
1bdc94 |
+ */
|
|
|
1bdc94 |
+#define PC_RHEL7_5_COMPAT \
|
|
|
1bdc94 |
+ HW_COMPAT_RHEL7_5 \
|
|
|
1bdc94 |
+ { /* PC_RHEL7_5_COMPAT from PC_COMPAT_2_11 */ \
|
|
|
1bdc94 |
+ .driver = "Skylake-Server" "-" TYPE_X86_CPU,\
|
|
|
1bdc94 |
+ .property = "clflushopt",\
|
|
|
1bdc94 |
+ .value = "off",\
|
|
|
1bdc94 |
+ },
|
|
|
1bdc94 |
+
|
|
|
1bdc94 |
+
|
|
|
1bdc94 |
#define PC_RHEL7_4_COMPAT \
|
|
|
1bdc94 |
HW_COMPAT_RHEL7_4 \
|
|
|
1bdc94 |
{ /* PC_RHEL7_4_COMPAT from PC_COMPAT_2_9 */ \
|
|
|
1bdc94 |
--
|
|
|
1bdc94 |
1.8.3.1
|
|
|
1bdc94 |
|