cryptospore / rpms / qemu-kvm

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