]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/i386/pc.h
pc: fix FW_CFG_NB_CPUS to account for -device added CPUs
[mirror_qemu.git] / include / hw / i386 / pc.h
index e32e9574ca86f7f3b3032015c92ba703a3b5b966..67a1a9e7860ae8ad3f636eb442aa8fe16b48a831 100644 (file)
@@ -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;