diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-11-16 14:04:41 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-11-16 12:10:00 -0200 |
commit | e3cadac073a99489df1627be56c3f487f5cb9e31 (patch) | |
tree | c8526f7656431f4acaa8036fb310d82427cdb3a0 /include | |
parent | 5836d16812cda6b93380632802d56411972e3148 (diff) | |
download | qemu-e3cadac073a99489df1627be56c3f487f5cb9e31.zip qemu-e3cadac073a99489df1627be56c3f487f5cb9e31.tar.gz qemu-e3cadac073a99489df1627be56c3f487f5cb9e31.tar.bz2 |
pc: fix FW_CFG_NB_CPUS to account for -device added CPUs
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1479301481-197333-1-git-send-email-imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/i386/pc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index e32e957..67a1a9e 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; |