diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-25 22:17:30 +0100 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-25 22:17:30 +0100 |
commit | 231f7bf638ac8c7349000f942065b2bb6eadaa3d (patch) | |
tree | 8e8d00f532f9057644e034641ba9ad2d1cee7562 /tools/libxen | |
parent | 669b95b0a5d4b0ba6df085d8c34423594e514d27 (diff) | |
download | xen-231f7bf638ac8c7349000f942065b2bb6eadaa3d.tar.gz xen-231f7bf638ac8c7349000f942065b2bb6eadaa3d.tar.bz2 xen-231f7bf638ac8c7349000f942065b2bb6eadaa3d.zip |
Added C bindings and docs for recent addition VM.set_VCPUs_number_live.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen')
-rw-r--r-- | tools/libxen/include/xen_vm.h | 8 | ||||
-rw-r--r-- | tools/libxen/src/xen_vm.c | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_vm.h b/tools/libxen/include/xen_vm.h index ddce6a8d1d..4b338088df 100644 --- a/tools/libxen/include/xen_vm.h +++ b/tools/libxen/include/xen_vm.h @@ -830,6 +830,14 @@ xen_vm_resume(xen_session *session, xen_vm vm, bool start_paused); /** + * Set this VM's VCPUs/at_startup value, and set the same value on the + * VM, if running + */ +extern bool +xen_vm_set_vcpus_number_live(xen_session *session, xen_vm self, int64_t nvcpu); + + +/** * Return a list of all the VMs known to the system. */ extern bool diff --git a/tools/libxen/src/xen_vm.c b/tools/libxen/src/xen_vm.c index f29d34f7eb..c0ac17c9d5 100644 --- a/tools/libxen/src/xen_vm.c +++ b/tools/libxen/src/xen_vm.c @@ -1594,6 +1594,22 @@ xen_vm_resume(xen_session *session, xen_vm vm, bool start_paused) bool +xen_vm_set_vcpus_number_live(xen_session *session, xen_vm self, int64_t nvcpu) +{ + abstract_value param_values[] = + { + { .type = &abstract_type_string, + .u.string_val = self }, + { .type = &abstract_type_int, + .u.int_val = nvcpu } + }; + + xen_call_(session, "VM.set_VCPUs_number_live", param_values, 2, NULL, NULL); + return session->ok; +} + + +bool xen_vm_get_all(xen_session *session, struct xen_vm_set **result) { |