qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] hw/i386/pc: Update max_cpus and default to SMBIOS
@ 2023-06-07  2:49 Suravee Suthikulpanit
  2023-06-07  2:49 ` [PATCH v5 1/3] hw/i386/pc: Refactor logic to set SMBIOS defaults Suravee Suthikulpanit
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Suravee Suthikulpanit @ 2023-06-07  2:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: pbonzini, richard.henderson, eduardo, mst, marcel.apfelbaum,
	imammedo, berrange, jusual, dfaggioli, joao.m.martins, jon.grimm,
	santosh.Shukla, Suravee Suthikulpanit

In order to support large number of vcpus, a newer 64-bit SMBIOS
entry point type is needed. Therefore, upgrade the default SMBIOS version
for PC machines to SMBIOS 3.0 for newer systems. Then increase the maximum
number of vCPUs for Q35 models to 1024, which is the limit for KVM.

Changes from V4:
(https://lore.kernel.org/qemu-devel/20230605213906.644883-1-suravee.suthikulpanit@amd.com/)
 * Patch 1: Introduce a helper function pc_machine_init_smbios() and
   move the callsite from pc_machine_done() to pc_machine_init_fn().

 * Patch 2: Remove stuct PCMachineState::smbios_use_cmdline_ep_type.

 * Patch 3: Keep max_cpus for pc machine version 8.0 and older as 288.

Changes from V3:
(https://lore.kernel.org/qemu-devel/20230603032255.517970-1-suravee.suthikulpanit@amd.com/T/#t )
 * Patch 1: Refactor the code to setup SMBIOS defaults to pc_machine_done().
 * Patch 2: Minor typo fixes in comment.

Changes from V2:
(https://lore.kernel.org/qemu-devel/20230531225127.331998-1-suravee.suthikulpanit@amd.com/)
 * Add patch 1.

Changes from V1:
(https://lore.kernel.org/all/YnkDGsIi1vFvXmiP@redhat.com/T/)
 * Bump from 512 to KVM_MAX_VCPUS (per Igor's suggestion)

Thank you,
Suravee

Suravee Suthikulpanit (3):
  hw/i386/pc: Refactor logic to set SMBIOS defaults
  hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models
  pc: q35: Bump max_cpus to 1024

 hw/i386/pc.c         | 28 +++++++++++++++++++++++++++-
 hw/i386/pc_piix.c    | 14 +++++---------
 hw/i386/pc_q35.c     | 16 +++++++---------
 include/hw/i386/pc.h |  1 +
 4 files changed, 40 insertions(+), 19 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-06-07 20:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-07  2:49 [PATCH v5 0/3] hw/i386/pc: Update max_cpus and default to SMBIOS Suravee Suthikulpanit
2023-06-07  2:49 ` [PATCH v5 1/3] hw/i386/pc: Refactor logic to set SMBIOS defaults Suravee Suthikulpanit
2023-06-07  8:03   ` Philippe Mathieu-Daudé
2023-06-07  8:11   ` Daniel P. Berrangé
2023-06-07  8:15     ` Philippe Mathieu-Daudé
2023-06-07 20:44     ` Suthikulpanit, Suravee
2023-06-07 13:54   ` Igor Mammedov
2023-06-07  2:49 ` [PATCH v5 2/3] hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models Suravee Suthikulpanit
2023-06-07 13:49   ` Igor Mammedov
2023-06-07 20:41     ` Suthikulpanit, Suravee
2023-06-07  2:49 ` [PATCH v5 3/3] pc: q35: Bump max_cpus to 1024 Suravee Suthikulpanit
2023-06-07  8:26   ` Philippe Mathieu-Daudé
2023-06-07  8:33     ` Daniel P. Berrangé
2023-06-07 13:51     ` Igor Mammedov
2023-06-07 13:52   ` Igor Mammedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).