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" <m...@redhat.com> Cc: Eduardo Habkost <ehabk...@redhat.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Igor Mammedov <imamm...@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelb...@gmail.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Philippe Mathieu-Daudé <phi...@redhat.com> Cc: Richard Henderson <r...@twiddle.net> 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