[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] hw/i386: pass "MachineState.smp.max_cpus" to OVMF
From: |
Laszlo Ersek |
Subject: |
[PATCH 0/4] hw/i386: pass "MachineState.smp.max_cpus" to OVMF |
Date: |
Tue, 8 Oct 2019 12:52:55 +0200 |
https://bugzilla.tianocore.org/show_bug.cgi?id=1515
For enabling VCPU hotplug with OVMF, OVMF needs to know the value of
"max_cpus". This quantity is not passed to the firmware currently --
SeaBIOS receives the (exclusive) maximum APICID, which is not useful to
OVMF --, so introduce a new fw_cfg file for this purpose.
Note: when OVMF is built with -D SMM_REQUIRE, this patch series is just
a small building block, towards the full VCPU hotplug feature. However,
when OVMF is built without -D SMM_REQUIRE, this series (together with
the counterpart patch set for OVMF) completes the VCPU hotplug feature:
it allows S3 resume to work with VCPUs hot-plugged previously (at OS
runtime, of course).
Cc: "Michael S. Tsirkin" <address@hidden>
Cc: Eduardo Habkost <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
Cc: Igor Mammedov <address@hidden>
Cc: Marcel Apfelbaum <address@hidden>
Cc: Paolo Bonzini <address@hidden>
Cc: Philippe Mathieu-Daudé <address@hidden>
Cc: Richard Henderson <address@hidden>
Thanks
Laszlo
Laszlo Ersek (4):
fw_cfg: bump file slots to 40
target/i386: remove useless enable_compat_apic_id_mode() prototype
hw/i386: add facility to expose CPU topology over fw-cfg
hw/i386/pc: expose CPU topology over fw-cfg
hw/core/machine.c | 2 ++
hw/i386/fw_cfg.c | 26 ++++++++++++++++++++++++--
hw/i386/fw_cfg.h | 30 +++++++++++++++++++++++++++++-
hw/i386/pc.c | 5 +++--
hw/i386/pc_piix.c | 2 ++
hw/i386/pc_q35.c | 2 ++
hw/nvram/fw_cfg.c | 2 +-
include/hw/i386/pc.h | 3 +++
target/i386/cpu.h | 2 --
9 files changed, 66 insertions(+), 8 deletions(-)
--
2.19.1.3.g30247aa5d201
- [PATCH 0/4] hw/i386: pass "MachineState.smp.max_cpus" to OVMF,
Laszlo Ersek <=