[libvirt] [PATCH] disable vCPU pinning with TCG mode

Michal Privoznik mprivozn at redhat.com
Fri Dec 19 08:08:24 UTC 2014


On 18.12.2014 17:35, Daniel P. Berrange wrote:
> 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 | 34 ++++++++++++++++++++++++++++++++++
>   1 file changed, 34 insertions(+)

ACK

Michal




More information about the libvir-list mailing list