From d78a8c26c2718d27151f50d911d31c7045724ba2 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 14 Nov 2016 14:47:23 +0100 Subject: [PATCH] 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. --- src/qemu/qemu_parse_command.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.2