|
|
f8a3e7 |
From: Dario Faggioli <dfaggioli@suse.com>
|
|
|
f8a3e7 |
Date: Wed, 16 Nov 2022 13:24:36 +0100
|
|
Bernhard M. Wiedemann |
399b1f |
Subject: [openSUSE] pc: q35: Bump max_cpus to 1024
|
|
|
f8a3e7 |
|
|
|
f8a3e7 |
And use the new limit for machine version 7.1 too.
|
|
|
f8a3e7 |
Keep the old limit of 288 for machine versions 7.0 and earlier.
|
|
|
f8a3e7 |
|
|
|
f8a3e7 |
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
|
|
Bernhard M. Wiedemann |
399b1f |
(cherry picked from commit
|
|
Bernhard M. Wiedemann |
399b1f |
https://lore.kernel.org/qemu-devel/166876173513.24238.8968021290016401421.stgit@tumbleweed.Wayrath/)
|
|
Bernhard M. Wiedemann |
399b1f |
References: bsc#1202282, jsc#PED-2592
|
|
Bernhard M. Wiedemann |
399b1f |
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
|
|
|
f8a3e7 |
---
|
|
|
f8a3e7 |
hw/i386/pc_q35.c | 3 ++-
|
|
|
f8a3e7 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
f8a3e7 |
|
|
|
f8a3e7 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
f8a3e7 |
index 2e5dae9a89faaf0d9c285b030ed7..6875e27b508cccd6891e2db58b68 100644
|
|
|
f8a3e7 |
--- a/hw/i386/pc_q35.c
|
|
|
f8a3e7 |
+++ b/hw/i386/pc_q35.c
|
|
|
f8a3e7 |
@@ -367,7 +367,7 @@ static void pc_q35_machine_options(MachineClass *m)
|
|
|
f8a3e7 |
machine_class_allow_dynamic_sysbus_dev(m, TYPE_INTEL_IOMMU_DEVICE);
|
|
|
f8a3e7 |
machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB_DEVICE);
|
|
|
f8a3e7 |
machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE);
|
|
|
f8a3e7 |
- m->max_cpus = 288;
|
|
|
f8a3e7 |
+ m->max_cpus = 1024;
|
|
|
f8a3e7 |
}
|
|
|
f8a3e7 |
|
|
|
f8a3e7 |
static void pc_q35_7_1_machine_options(MachineClass *m)
|
|
|
f8a3e7 |
@@ -388,6 +388,7 @@ static void pc_q35_7_0_machine_options(MachineClass *m)
|
|
|
f8a3e7 |
pc_q35_7_1_machine_options(m);
|
|
|
f8a3e7 |
m->alias = NULL;
|
|
|
f8a3e7 |
pcmc->enforce_amd_1tb_hole = false;
|
|
|
f8a3e7 |
+ m->max_cpus = 288;
|
|
|
f8a3e7 |
compat_props_add(m->compat_props, hw_compat_7_0, hw_compat_7_0_len);
|
|
|
f8a3e7 |
compat_props_add(m->compat_props, pc_compat_7_0, pc_compat_7_0_len);
|
|
|
f8a3e7 |
}
|