]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: setvcpus: Fix maxvcpus check
authorCole Robinson <crobinso@redhat.com>
Mon, 22 Nov 2010 18:55:58 +0000 (13:55 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 23 Nov 2010 13:42:46 +0000 (08:42 -0500)
commitd75202915e26006d46d21bd756ba387c7b8909eb
tree8c7e2f1bd915c1c291ff28eed8182d9184653cdb
parent81e6f68d0eb7c3a35f0583411200151d50e3203d
qemu: setvcpus: Fix maxvcpus check

Doing 'virsh setvcpus $vm --config 10' doesn't check the value against the
domains maxvcpus value. A larger value for example will prevent the guest
from starting.

Also make a similar change to the test driver.
src/qemu/qemu_driver.c
src/test/test_driver.c