|
|
26ba25 |
From 188fa8896734043c11798495072b7f98111c5d94 Mon Sep 17 00:00:00 2001
|
|
|
26ba25 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
26ba25 |
Date: Wed, 25 Apr 2018 13:30:35 +0000
|
|
|
26ba25 |
Subject: pc: rhel7.6.0 machine-types
|
|
|
26ba25 |
|
|
|
26ba25 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1557051
|
|
|
26ba25 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1559791
|
|
|
26ba25 |
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=15893027
|
|
|
26ba25 |
|
|
|
26ba25 |
The rhel7.6.0 machine-type was going to be added much later
|
|
|
26ba25 |
because RHEL-7.6 is not ready yet. However, adding a new
|
|
|
26ba25 |
machine-type is the only way to change the default NIC to e1000e.
|
|
|
26ba25 |
This patch adds pc-*-rhel7.6.0 machine-types.
|
|
|
26ba25 |
|
|
|
26ba25 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
26ba25 |
---
|
|
|
26ba25 |
hw/i386/pc_piix.c | 21 ++++++++++++++++++---
|
|
|
26ba25 |
hw/i386/pc_q35.c | 18 ++++++++++++++++--
|
|
|
26ba25 |
2 files changed, 34 insertions(+), 5 deletions(-)
|
|
|
26ba25 |
|
|
|
26ba25 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
26ba25 |
index e5add39..0ff1e2d 100644
|
|
|
26ba25 |
--- a/hw/i386/pc_piix.c
|
|
|
26ba25 |
+++ b/hw/i386/pc_piix.c
|
|
|
26ba25 |
@@ -1156,6 +1156,21 @@ static void pc_machine_rhel7_options(MachineClass *m)
|
|
|
26ba25 |
m->is_default = 1;
|
|
|
26ba25 |
}
|
|
|
26ba25 |
|
|
|
26ba25 |
+static void pc_init_rhel760(MachineState *machine)
|
|
|
26ba25 |
+{
|
|
|
26ba25 |
+ pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
|
|
|
26ba25 |
+ TYPE_I440FX_PCI_DEVICE);
|
|
|
26ba25 |
+}
|
|
|
26ba25 |
+
|
|
|
26ba25 |
+static void pc_machine_rhel760_options(MachineClass *m)
|
|
|
26ba25 |
+{
|
|
|
26ba25 |
+ pc_machine_rhel7_options(m);
|
|
|
26ba25 |
+ m->desc = "RHEL 7.6.0 PC (i440FX + PIIX, 1996)";
|
|
|
26ba25 |
+}
|
|
|
26ba25 |
+
|
|
|
26ba25 |
+DEFINE_PC_MACHINE(rhel760, "pc-i440fx-rhel7.6.0", pc_init_rhel760,
|
|
|
26ba25 |
+ pc_machine_rhel760_options);
|
|
|
26ba25 |
+
|
|
|
26ba25 |
static void pc_init_rhel750(MachineState *machine)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \
|
|
|
26ba25 |
@@ -1164,7 +1179,9 @@ static void pc_init_rhel750(MachineState *machine)
|
|
|
26ba25 |
|
|
|
26ba25 |
static void pc_machine_rhel750_options(MachineClass *m)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
- pc_machine_rhel7_options(m);
|
|
|
26ba25 |
+ pc_machine_rhel760_options(m);
|
|
|
26ba25 |
+ m->alias = NULL;
|
|
|
26ba25 |
+ m->is_default = 0;
|
|
|
26ba25 |
m->desc = "RHEL 7.5.0 PC (i440FX + PIIX, 1996)";
|
|
|
26ba25 |
m->auto_enable_numa_with_memhp = false;
|
|
|
26ba25 |
SET_MACHINE_COMPAT(m, PC_RHEL7_5_COMPAT);
|
|
|
26ba25 |
@@ -1183,8 +1200,6 @@ static void pc_machine_rhel740_options(MachineClass *m)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
26ba25 |
pc_machine_rhel750_options(m);
|
|
|
26ba25 |
- m->alias = NULL;
|
|
|
26ba25 |
- m->is_default = 0;
|
|
|
26ba25 |
m->desc = "RHEL 7.4.0 PC (i440FX + PIIX, 1996)";
|
|
|
26ba25 |
m->numa_auto_assign_ram = numa_legacy_auto_assign_ram;
|
|
|
26ba25 |
pcmc->pc_rom_ro = false;
|
|
|
26ba25 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
26ba25 |
index ffc461d..e1fd23e 100644
|
|
|
26ba25 |
--- a/hw/i386/pc_q35.c
|
|
|
26ba25 |
+++ b/hw/i386/pc_q35.c
|
|
|
26ba25 |
@@ -424,6 +424,20 @@ static void pc_q35_machine_rhel7_options(MachineClass *m)
|
|
|
26ba25 |
SET_MACHINE_COMPAT(m, PC_RHEL_COMPAT);
|
|
|
26ba25 |
}
|
|
|
26ba25 |
|
|
|
26ba25 |
+static void pc_q35_init_rhel760(MachineState *machine)
|
|
|
26ba25 |
+{
|
|
|
26ba25 |
+ pc_q35_init(machine);
|
|
|
26ba25 |
+}
|
|
|
26ba25 |
+
|
|
|
26ba25 |
+static void pc_q35_machine_rhel760_options(MachineClass *m)
|
|
|
26ba25 |
+{
|
|
|
26ba25 |
+ pc_q35_machine_rhel7_options(m);
|
|
|
26ba25 |
+ m->desc = "RHEL-7.6.0 PC (Q35 + ICH9, 2009)";
|
|
|
26ba25 |
+}
|
|
|
26ba25 |
+
|
|
|
26ba25 |
+DEFINE_PC_MACHINE(q35_rhel760, "pc-q35-rhel7.6.0", pc_q35_init_rhel760,
|
|
|
26ba25 |
+ pc_q35_machine_rhel760_options);
|
|
|
26ba25 |
+
|
|
|
26ba25 |
static void pc_q35_init_rhel750(MachineState *machine)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
pc_q35_init(machine);
|
|
|
26ba25 |
@@ -432,7 +446,8 @@ static void pc_q35_init_rhel750(MachineState *machine)
|
|
|
26ba25 |
static void pc_q35_machine_rhel750_options(MachineClass *m)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
26ba25 |
- pc_q35_machine_rhel7_options(m);
|
|
|
26ba25 |
+ pc_q35_machine_rhel760_options(m);
|
|
|
26ba25 |
+ m->alias = NULL;
|
|
|
26ba25 |
m->desc = "RHEL-7.5.0 PC (Q35 + ICH9, 2009)";
|
|
|
26ba25 |
m->auto_enable_numa_with_memhp = false;
|
|
|
26ba25 |
pcmc->default_nic_model = "e1000";
|
|
|
26ba25 |
@@ -451,7 +466,6 @@ static void pc_q35_machine_rhel740_options(MachineClass *m)
|
|
|
26ba25 |
{
|
|
|
26ba25 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
26ba25 |
pc_q35_machine_rhel750_options(m);
|
|
|
26ba25 |
- m->alias = NULL;
|
|
|
26ba25 |
m->desc = "RHEL-7.4.0 PC (Q35 + ICH9, 2009)";
|
|
|
26ba25 |
m->numa_auto_assign_ram = numa_legacy_auto_assign_ram;
|
|
|
26ba25 |
pcmc->pc_rom_ro = false;
|
|
|
26ba25 |
--
|
|
|
26ba25 |
1.8.3.1
|
|
|
26ba25 |
|