Re: [PATCH 2/2] Revert "qemu: Forbid pinning vCPUs for TCG domain"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/17/18 10:15 AM, Daniel P. Berrangé wrote:
> 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.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c | 7 -------
>  1 file changed, 7 deletions(-)
> 

While looking at another "== VIR_DOMAIN_VIRT_QEMU" check in
virQEMUCapsAddCPUDefinitions, I wonder why/when/if it really mattered if
qemuCaps->tcgCPUModels in this code... No matter, I agree let's remove it.

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux