495e37
From ecadfaec992fda7f485522c9ee6e7c9b05614a22 Mon Sep 17 00:00:00 2001
495e37
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
495e37
Date: Tue, 7 Dec 2021 18:39:47 +0000
495e37
Subject: [PATCH 2/2] rhel machine types/x86: set prefer_sockets
495e37
495e37
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
495e37
RH-MergeRequest: 59: rhel machine types/x86: set prefer_sockets
495e37
RH-Commit: [1/1] 9bcd9e2c95154e39ef30a8a342ad6c713fa4f1fb (dagrh/c-9-s-qemu-kvm)
495e37
RH-Bugzilla: 2028623
495e37
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
495e37
RH-Acked-by: quintela1 <quintela@redhat.com>
495e37
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
495e37
495e37
When I fixed up the machine types for 8.5 I missed the
495e37
  prefer_sockets = true
495e37
495e37
add them in; it looks like Power, ARM already have them, and I see them
495e37
in thuth's s390 patch.
495e37
495e37
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
495e37
---
495e37
 hw/i386/pc_piix.c | 1 +
495e37
 hw/i386/pc_q35.c  | 1 +
495e37
 2 files changed, 2 insertions(+)
495e37
495e37
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
495e37
index 183b5d5464..fccb7f5fc9 100644
495e37
--- a/hw/i386/pc_piix.c
495e37
+++ b/hw/i386/pc_piix.c
495e37
@@ -973,6 +973,7 @@ static void pc_machine_rhel7_options(MachineClass *m)
495e37
     compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
495e37
     m->alias = "pc";
495e37
     m->is_default = 1;
495e37
+    m->smp_props.prefer_sockets = true;
495e37
 }
495e37
 
495e37
 static void pc_init_rhel760(MachineState *machine)
495e37
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
495e37
index 0e7e885e78..3b748ddd7b 100644
495e37
--- a/hw/i386/pc_q35.c
495e37
+++ b/hw/i386/pc_q35.c
495e37
@@ -662,6 +662,7 @@ static void pc_q35_machine_rhel850_options(MachineClass *m)
495e37
                      hw_compat_rhel_8_5_len);
495e37
     compat_props_add(m->compat_props, pc_rhel_8_5_compat,
495e37
                      pc_rhel_8_5_compat_len);
495e37
+    m->smp_props.prefer_sockets = true;
495e37
 }
495e37
 
495e37
 DEFINE_PC_MACHINE(q35_rhel850, "pc-q35-rhel8.5.0", pc_q35_init_rhel850,
495e37
-- 
495e37
2.27.0
495e37