]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
disable vCPU pinning with TCG mode
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 18 Dec 2014 16:34:48 +0000 (16:34 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 19 Dec 2014 11:32:21 +0000 (11:32 +0000)
commit65686e5a81d654d834d338fceeaf0229b2ca4f0d
tree32b005ed6401b83e26a819463c2d6166ba5de35b
parentb07f3d821dfb11a118ee75ea275fd6ab737d9500
disable vCPU pinning with TCG mode

Although QMP returns info about vCPU threads in TCG mode, the
data it returns is mostly lies. Only the first vCPU has a valid
thread_id returned. The thread_id given for the other vCPUs is
in fact the main emulator thread. All vCPUs actually run under
the same thread in TCG mode.

Our vCPU pinning code is not at all able to cope with this
so if you try to set CPU affinity per-vCPU you end up with
wierd errors

error: Failed to start domain instance-00000007
error: cannot set CPU affinity on process 24365: Invalid argument

Since few people will care about the performance of TCG with
strict CPU pinning, lets just disable that for now, so we get
a clear error message

error: Failed to start domain instance-00000007
error: Requested operation is not valid: cpu affinity is not supported
src/qemu/qemu_process.c