]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
hw/boards: Add struct CpuTopology to MachineState
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index ddefa75c1d0579315996f648a64dc5516b457450..43113386f7187847bebc05b0e983ef007c786e85 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -4014,6 +4014,11 @@ int main(int argc, char **argv, char **envp)
 
     smp_parse(qemu_opts_find(qemu_find_opts("smp-opts"), NULL));
 
+    current_machine->smp.cpus = smp_cpus;
+    current_machine->smp.max_cpus = max_cpus;
+    current_machine->smp.cores = smp_cores;
+    current_machine->smp.threads = smp_threads;
+
     /* sanity-check smp_cpus and max_cpus against machine_class */
     if (smp_cpus < machine_class->min_cpus) {
         error_report("Invalid SMP CPUs %d. The min CPUs "