https://bugs.winehq.org/show_bug.cgi?id=47855
--- Comment #2 from François Gouget fgouget@codeweavers.com --- Fortunately our requirements are probably simpler than Netflix's. For instance I think in our case it would be quite alright to place a "dual-cpu" VM on a single hyperthreaded host core.
The nodeinfo and capabilities virsh commands are interesting: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/htm...
Furthermore virsh vcpupin indicates that the CPU pinning can be configured on running guests and presumably all these APIs are available through Libvirt's perl interface.
So I guess LibvirtTool could query the host's CPU and Numa information (virsh capabilities), get a list of the already running VMs (virsh list), get CPU assignments from them (virsh vcpuinfo), and set up pinning for the new VM (virsh vcpupin).