]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Revert "qemu: Forbid pinning vCPUs for TCG domain"
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 17 Oct 2018 13:59:52 +0000 (14:59 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 29 Jan 2019 17:19:10 +0000 (17:19 +0000)
commit9047b9aec0d2f224edd072cd81ca0a20a4a77796
tree44d5c110c520364ec7b25c04a7dd778fbd249a0e
parent34f77437da884f9cf0e2450f25f373b17cf527e2
Revert "qemu: Forbid pinning vCPUs for TCG domain"

This reverts commit 8b035c84d8a7362a87a95e6114b8e7f959685ed9.

The MTTCG impl in QEMU does allow pinning vCPUs.

When the guest is running we already check if pinning is
possible in the qemuDomainPinVcpuLive method, so this
check was adding no benefit.

When the guest is not running, we cannot know whether the
subsequent launch will use MTTCG or TCG, so we must allow
the pinning request. If the guest does use TCG on the next
launch it will fail, but this is no worse than if the user
had done a virDomainDefineXML with an XML doc specifying
vCPU pinning.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_driver.c