]> git.proxmox.com Git - mirror_qemu.git/blobdiff - accel/kvm/kvm-all.c
general: Replace global smp variables with smp machine properties
[mirror_qemu.git] / accel / kvm / kvm-all.c
index e3cf72883ba5b702b645a0b0d53e4a1d75641557..3d86ae505210af1d57cd3c4a6b9fd610ff22781e 100644 (file)
@@ -1542,8 +1542,8 @@ static int kvm_init(MachineState *ms)
         const char *name;
         int num;
     } num_cpus[] = {
-        { "SMP",          smp_cpus },
-        { "hotpluggable", max_cpus },
+        { "SMP",          ms->smp.cpus },
+        { "hotpluggable", ms->smp.max_cpus },
         { NULL, }
     }, *nc = num_cpus;
     int soft_vcpus_limit, hard_vcpus_limit;