]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Refactor qemuDomainHotplugVcpus
authorPeter Krempa <pkrempa@redhat.com>
Fri, 30 Oct 2015 11:46:33 +0000 (12:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Dec 2015 13:57:12 +0000 (14:57 +0100)
commitde3db7d27fd5817c7215c39c7d03f5802ec56598
tree357056cbdfe70752224cae9d6589fb2f2966e9b2
parent3b3b98056def4255697f4ef83ea89207540571af
qemu: Refactor qemuDomainHotplugVcpus

Refactor the code flow so that 'exit_monitor:' can be removed.

This patch also moves the auditing and setting of the new vCPU count
right to the place where the hotplug happens, since it's possible that
the hotplug succeeds and adds a cpu while other stuff fails.

Lastly, failures of qemuMonitorGetCPUInfo are now reported rather than
ignored. The function retuns 0 if it "successfully" detected 0 threads.
src/qemu/qemu_driver.c