]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Don't setup fake CPU pids for old QEMU
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 18 Dec 2014 16:34:39 +0000 (16:34 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 19 Dec 2014 11:32:21 +0000 (11:32 +0000)
commitb07f3d821dfb11a118ee75ea275fd6ab737d9500
tree1198419263b01a2ea7a712fd729f5667d0d8a941
parentf309db1f4d51009bad0d32e12efc75530b66836b
Don't setup fake CPU pids for old QEMU

The code assumes that def->vcpus == nvcpupids, so when we setup
fake CPU pids for old QEMU with nvcpupids == 1, we cause the
later code to read off the end of the array. This has fun results
like sche_setaffinity(0, ...) which changes libvirtd's own CPU
affinity, or even better sched_setaffinity($RANDOM, ...) which
changes the affinity of a random OS process.
src/qemu/qemu_process.c
src/util/virprocess.c