From e3cadac073a99489df1627be56c3f487f5cb9e31 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Wed, 16 Nov 2016 14:04:41 +0100 Subject: pc: fix FW_CFG_NB_CPUS to account for -device added CPUs Signed-off-by: Igor Mammedov Message-Id: <1479301481-197333-1-git-send-email-imammedo@redhat.com> Reviewed-by: Eduardo Habkost Signed-off-by: Eduardo Habkost --- include/hw/i386/pc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index e32e9574ca..67a1a9e786 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -36,6 +36,7 @@ /** * PCMachineState: * @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling + * @boot_cpus: number of present VCPUs */ struct PCMachineState { /*< private >*/ @@ -70,6 +71,7 @@ struct PCMachineState { bool apic_xrupt_override; unsigned apic_id_limit; CPUArchIdList *possible_cpus; + uint16_t boot_cpus; /* NUMA information: */ uint64_t numa_nodes; -- cgit v1.2.3