aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/src
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-03-25 22:17:30 +0100
committerEwan Mellor <ewan@xensource.com>2007-03-25 22:17:30 +0100
commit231f7bf638ac8c7349000f942065b2bb6eadaa3d (patch)
tree8e8d00f532f9057644e034641ba9ad2d1cee7562 /tools/libxen/src
parent669b95b0a5d4b0ba6df085d8c34423594e514d27 (diff)
downloadxen-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/src')
-rw-r--r--tools/libxen/src/xen_vm.c16
1 files changed, 16 insertions, 0 deletions
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)
{