From: Peter Krempa Date: Mon, 14 Nov 2016 13:47:23 +0000 (+0100) Subject: qemu: parse: Allow the 'cpus=' prefix for current cpu number X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d78a8c26c2718d27151f50d911d31c7045724ba2;p=libvirt.git qemu: parse: Allow the 'cpus=' prefix for current cpu number qemu allows following syntax: -smp [cpus=]n[,cores=cores][,threads=threads][,sockets=sockets][,maxcpus=maxcpus] Allow the "cpus" prefix. --- diff --git a/src/qemu/qemu_parse_command.c b/src/qemu/qemu_parse_command.c index b19c523939..98051be20d 100644 --- a/src/qemu/qemu_parse_command.c +++ b/src/qemu/qemu_parse_command.c @@ -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; }