]> git.proxmox.com Git - qemu.git/commit
vl: convert -smp to qemu_opts_parse()
authorMichael Tokarev <mjt@tls.msk.ru>
Mon, 24 Jun 2013 11:06:52 +0000 (15:06 +0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Jun 2013 19:02:14 +0000 (14:02 -0500)
commit12b7f57e2cfcd665cf5a21b4ae3c23b9361c5c05
tree6e7142c025ee5cd1fff2464464abbb58a3b69ffc
parent8a27c6a067acd03cbd810585552df4818a4397f7
vl: convert -smp to qemu_opts_parse()

This also introduces a new suboption, "cpus=",
which is the default.  So after this patch,

 -smp n,sockets=y

is the same as

  -smp cpus=n,sockets=y

(with "cpu" being some generic thing, referring to
either cores, or threads, or sockets, as before).

We still don't validate relations between different
numbers, for example it is still possible to say

  -smp 1,sockets=10

and it will be accepted to mean sockets=1.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Message-id: 1372072012-30305-1-git-send-email-mjt@msgid.tls.msk.ru
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-options.hx
vl.c