]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: parse: Allow the 'cpus=' prefix for current cpu number
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Nov 2016 13:47:23 +0000 (14:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 21 Nov 2016 13:35:20 +0000 (14:35 +0100)
qemu allows following syntax:

  -smp [cpus=]n[,cores=cores][,threads=threads][,sockets=sockets][,maxcpus=maxcpus]

Allow the "cpus" prefix.

src/qemu/qemu_parse_command.c

index b19c523939680e1f59cfa0c5b29053c7254cdfe9..98051be20d88e0a8e2df3d3d6f9d2ca279507b42 100644 (file)
@@ -1694,6 +1694,8 @@ qemuParseCommandLineSmp(virDomainDefPtr dom,
                 threads = n;
             else if (STREQ(kws[i], "maxcpus"))
                 maxcpus = n;
+            else if (STREQ(kws[i], "cpus"))
+                vcpus = n;
             else
                 goto syntax;
         }