|
|
28f2e1 |
From 0f0cbd57a8fe8f463941656f5bc75ae5754c3d2b Mon Sep 17 00:00:00 2001
|
|
|
28f2e1 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
28f2e1 |
Date: Tue, 7 Dec 2021 18:39:47 +0000
|
|
|
28f2e1 |
Subject: [PATCH 6/6] rhel machine types/x86: set prefer_sockets
|
|
|
28f2e1 |
|
|
|
28f2e1 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
28f2e1 |
RH-MergeRequest: 96: Fixup x86 prefer_sockets
|
|
|
28f2e1 |
RH-Commit: [1/1] 29578bcc2f5d3408c155c155cdfa10b7a12faf4d
|
|
|
28f2e1 |
RH-Bugzilla: 2029582
|
|
|
28f2e1 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
28f2e1 |
RH-Acked-by: quintela1 <quintela@redhat.com>
|
|
|
28f2e1 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
28f2e1 |
|
|
|
28f2e1 |
When I fixed up the machine types for 8.5 I missed the
|
|
|
28f2e1 |
prefer_sockets = true
|
|
|
28f2e1 |
|
|
|
28f2e1 |
add them in; it looks like Power, ARM already have them, and I see them
|
|
|
28f2e1 |
in thuth's s390 patch.
|
|
|
28f2e1 |
|
|
|
28f2e1 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
28f2e1 |
---
|
|
|
28f2e1 |
hw/i386/pc_piix.c | 1 +
|
|
|
28f2e1 |
hw/i386/pc_q35.c | 1 +
|
|
|
28f2e1 |
2 files changed, 2 insertions(+)
|
|
|
28f2e1 |
|
|
|
28f2e1 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
28f2e1 |
index 37fab00733..c30057c443 100644
|
|
|
28f2e1 |
--- a/hw/i386/pc_piix.c
|
|
|
28f2e1 |
+++ b/hw/i386/pc_piix.c
|
|
|
28f2e1 |
@@ -1020,6 +1020,7 @@ static void pc_machine_rhel7_options(MachineClass *m)
|
|
|
28f2e1 |
compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
|
|
|
28f2e1 |
m->alias = "pc";
|
|
|
28f2e1 |
m->is_default = 1;
|
|
|
28f2e1 |
+ m->smp_props.prefer_sockets = true;
|
|
|
28f2e1 |
}
|
|
|
28f2e1 |
|
|
|
28f2e1 |
static void pc_init_rhel760(MachineState *machine)
|
|
|
28f2e1 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
28f2e1 |
index 78876e1101..f6e77bca0e 100644
|
|
|
28f2e1 |
--- a/hw/i386/pc_q35.c
|
|
|
28f2e1 |
+++ b/hw/i386/pc_q35.c
|
|
|
28f2e1 |
@@ -662,6 +662,7 @@ static void pc_q35_machine_rhel850_options(MachineClass *m)
|
|
|
28f2e1 |
hw_compat_rhel_8_5_len);
|
|
|
28f2e1 |
compat_props_add(m->compat_props, pc_rhel_8_5_compat,
|
|
|
28f2e1 |
pc_rhel_8_5_compat_len);
|
|
|
28f2e1 |
+ m->smp_props.prefer_sockets = true;
|
|
|
28f2e1 |
}
|
|
|
28f2e1 |
|
|
|
28f2e1 |
DEFINE_PC_MACHINE(q35_rhel850, "pc-q35-rhel8.5.0", pc_q35_init_rhel850,
|
|
|
28f2e1 |
--
|
|
|
28f2e1 |
2.27.0
|
|
|
28f2e1 |
|