[PATCH 2/5] qemu: parse: Allow the 'cpus=' prefix for current cpu number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 b19c523..98051be 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.10.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]