On 07/19/2013 04:51 PM, Peeyush Gupta
wrote:
Hi Peeyush In libvirt python -binding . You can find the following functions for pining vcpus. class virDomain: ..... def pinVcpu(self, vcpu, cpumap): """Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. """ ret = libvirtmod.virDomainPinVcpu(self._o, vcpu, cpumap) if ret == -1: raise libvirtError ('virDomainPinVcpu() failed', dom=self) return ret def pinVcpuFlags(self, vcpu, cpumap, flags): """Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. """ ret = libvirtmod.virDomainPinVcpuFlags(self._o, vcpu, cpumap, flags) if ret == -1: raise libvirtError ('virDomainPinVcpuFlags() failed', dom=self) return ret .......
|
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users