]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vcpu: implement the public APIs
authorEric Blake <eblake@redhat.com>
Mon, 27 Sep 2010 15:37:22 +0000 (09:37 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 19 Oct 2010 16:02:06 +0000 (10:02 -0600)
commit9d2c60799271d605f82dfd4bfa6ed7d14ad87e26
treed4ee4ac4f80e09fc298d1ad508cbbc4683921570
parentdd255d64053e9960cd375994ce8f056522e12acc
vcpu: implement the public APIs

Factors common checks (such as nonzero vcpu count) up front, but
drivers will still need to do additional flag checks.

* src/libvirt.c (virDomainSetVcpusFlags, virDomainGetVcpusFlags):
New functions.
(virDomainSetVcpus, virDomainGetMaxVcpus): Refer to new API.
src/libvirt.c