]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu_driver: fix setting vcpus for offline domain
authorPavel Hrdina <phrdina@redhat.com>
Tue, 13 Jan 2015 12:33:43 +0000 (13:33 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 14 Jan 2015 09:34:20 +0000 (10:34 +0100)
commite105dc981438bc33fa771bd67cece6234dbf6c8d
tree0c8a4135ee4e2894274f3bafacc0b9a2342b9e9d
parent04cf99a6b6ce380d4e04c726d1a7d4da40f908eb
qemu_driver: fix setting vcpus for offline domain

Commit e3435caf fixed hot-plugging of vcpus with strict memory pinning
on NUMA hosts, but unfortunately it also broke updating number of vcpus
for offline guests using our API.

The issue is that we try to create a cpu cgroup for non-running guest
which fails as there are no cgroups for that domain. We should create
cgroups and update cpuset.mems only if we are hot-plugging.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_driver.c