[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Added C bindings and docs for recent addition VM.set_VCPUs_number_live.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174857450 -3600
# Node ID e3e7c59cdba11b600466f4af225b912cbd4cf790
# Parent  b37006439a5315ef6bc10b337df0edd12863b082
Added C bindings and docs for recent addition VM.set_VCPUs_number_live.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |   35 +++++++++++++++++++++++++++++++++++
 tools/libxen/include/xen_vm.h     |    8 ++++++++
 tools/libxen/src/xen_vm.c         |   16 ++++++++++++++++
 3 files changed, 59 insertions(+)

diff -r b37006439a53 -r e3e7c59cdba1 docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Sun Mar 25 16:47:18 2007 +0100
+++ b/docs/xen-api/xenapi-datamodel.tex Sun Mar 25 22:17:30 2007 +0100
@@ -1434,6 +1434,41 @@ void
 \noindent{\bf Possible Error Codes:} {\tt VM\_BAD\_POWER\_STATE}
 
 \vspace{0.6cm}
+\subsubsection{RPC name:~set\_VCPUs\_number\_live}
+
+{\bf Overview:} 
+Set this VM's VCPUs/at\_startup value, and set the same value on the VM, if
+running.
+
+ \noindent {\bf Signature:} 
+\begin{verbatim} void set_VCPUs_number_live (session_id s, VM ref self, int 
nvcpu)\end{verbatim}
+
+
+\noindent{\bf Arguments:}
+
+ 
+\vspace{0.3cm}
+\begin{tabular}{|c|c|p{7cm}|}
+ \hline
+{\bf type} & {\bf name} & {\bf description} \\ \hline
+{\tt VM ref } & self & The VM \\ \hline 
+
+{\tt int } & nvcpu & The number of VCPUs \\ \hline 
+
+\end{tabular}
+
+\vspace{0.3cm}
+
+ \noindent {\bf Return Type:} 
+{\tt 
+void
+}
+
+
+
+\vspace{0.3cm}
+\vspace{0.3cm}
+\vspace{0.3cm}
 \subsubsection{RPC name:~get\_all}
 
 {\bf Overview:} 
diff -r b37006439a53 -r e3e7c59cdba1 tools/libxen/include/xen_vm.h
--- a/tools/libxen/include/xen_vm.h     Sun Mar 25 16:47:18 2007 +0100
+++ b/tools/libxen/include/xen_vm.h     Sun Mar 25 22:17:30 2007 +0100
@@ -830,6 +830,14 @@ xen_vm_resume(xen_session *session, xen_
 
 
 /**
+ * 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 -r b37006439a53 -r e3e7c59cdba1 tools/libxen/src/xen_vm.c
--- a/tools/libxen/src/xen_vm.c Sun Mar 25 16:47:18 2007 +0100
+++ b/tools/libxen/src/xen_vm.c Sun Mar 25 22:17:30 2007 +0100
@@ -1594,6 +1594,22 @@ xen_vm_resume(xen_session *session, xen_
 
 
 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)
 {
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.