]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Parallels: add domainGetVcpus()
authorAlexander Burluka <aburluka@parallels.com>
Thu, 5 Jun 2014 05:50:04 +0000 (09:50 +0400)
committerEric Blake <eblake@redhat.com>
Fri, 6 Jun 2014 12:29:52 +0000 (06:29 -0600)
commite721e9e6bd8467e92d6f86c8d3124b0cf27cd92c
tree1a08c56739f0b49fb9d07a35ffa873ce23f5ae52
parentbb5cb873cc98ca3842e4c84276840dd84101fef3
Parallels: add domainGetVcpus()

OpenStack Nova requires this function
to start VM instance. Cpumask info is obtained via prlctl utility.
Unlike KVM, Parallels Cloud Server is unable to set cpu affinity
mask for every VCpu. Mask is unique for all VCpu. You can set it
using 'prlctl set <vm_id|vm_name> --cpumask <{n[,n,n1-n2]|all}>'
command. For example, 'prlctl set SomeDomain --cpumask 0,1,5-7'
would set this mask to yy---yyy.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/parallels/parallels_driver.c
src/parallels/parallels_utils.h