On 18.12.2014 17:35, Daniel P. Berrange wrote:
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 | 9 ++++-----
src/util/virprocess.c | 1 +
2 files changed, 5 insertions(+), 5 deletions(-)
ACK
Michal