]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Error out if the bitmap for pinning is all clear
authorOsier Yang <jyang@redhat.com>
Tue, 2 Apr 2013 05:42:14 +0000 (13:42 +0800)
committerOsier Yang <jyang@redhat.com>
Sat, 6 Apr 2013 02:16:59 +0000 (10:16 +0800)
commitfd1432c7ae1c471aef84f3f83e0bb38bb32af7c2
tree50c91b3740fb16cd8b505ca77f3636738885c696
parent1acfc171dadbea1cca9c77d53441cf02fe27b009
qemu: Error out if the bitmap for pinning is all clear

For both "live" and "config" changes of vcpupin and emulatorpin, an
all clear bitmap doesn't make sense, and it can just cause corruptions.
E.g (similar for emulatorpin).

% virsh vcpupin hame 0 8,^8 --config

% virsh vcpupin hame
VCPU: CPU Affinity
----------------------------------
   0:
   1: 0-63
   2: 0-63
   3: 0-63

% virsh dumpxml hame | grep cpuset
    <vcpupin vcpu='0' cpuset=''/>

% virsh start hame
error: Failed to start domain hame
error: An error occurred, but the cause is unknown
src/qemu/qemu_driver.c