direct-io.hg

changeset 12755:a05841d57ce0

Make VM.VCPUs.number a writable field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Dec 06 16:26:53 2006 +0000 (2006-12-06)
parents 21c2bac97104
children 1d32fb45e08f
files docs/xen-api/xenapi-datamodel.tex
line diff
     1.1 --- a/docs/xen-api/xenapi-datamodel.tex	Wed Dec 06 15:45:09 2006 +0000
     1.2 +++ b/docs/xen-api/xenapi-datamodel.tex	Wed Dec 06 16:26:53 2006 +0000
     1.3 @@ -1201,7 +1201,7 @@ Quals & Field & Type & Description \\
     1.4  $\mathit{RO}_\mathit{ins}$ &  {\tt memory/static\_min} & int & Statically-set (i.e. absolute) mininum (bytes) \\
     1.5  $\mathit{RW}$ &  {\tt VCPUs/policy} & string & the name of the VCPU scheduling policy to be applied \\
     1.6  $\mathit{RW}$ &  {\tt VCPUs/params} & string & string-encoded parameters passed to selected VCPU policy \\
     1.7 -$\mathit{RO}_\mathit{run}$ &  {\tt VCPUs/number} & int & Current number of VCPUs \\
     1.8 +$\mathit{RW}$ &  {\tt VCPUs/number} & int & Current number of VCPUs \\
     1.9  $\mathit{RO}_\mathit{run}$ &  {\tt VCPUs/utilisation} & (int $\rightarrow$ float) Map & Utilisation for all of guest's current VCPUs \\
    1.10  $\mathit{RO}_\mathit{ins}$ &  {\tt VCPUs/features/required} & (cpu\_feature) Set & CPU features the guest demands the host supports \\
    1.11  $\mathit{RO}_\mathit{ins}$ &  {\tt VCPUs/features/can\_use} & (cpu\_feature) Set & CPU features the guest can use if available \\
    1.12 @@ -2402,6 +2402,40 @@ value of the field
    1.13  \vspace{0.3cm}
    1.14  \vspace{0.3cm}
    1.15  \vspace{0.3cm}
    1.16 +\subsubsection{RPC name:~set\_VCPUs\_number}
    1.17 +
    1.18 +{\bf Overview:} 
    1.19 +Set the VCPUs/number field of the given VM.
    1.20 +
    1.21 + \noindent {\bf Signature:} 
    1.22 +\begin{verbatim} void set_VCPUs_number (session_id s, VM ref self, int value)\end{verbatim}
    1.23 +
    1.24 +
    1.25 +\noindent{\bf Arguments:}
    1.26 +
    1.27 + 
    1.28 +\vspace{0.3cm}
    1.29 +\begin{tabular}{|c|c|p{7cm}|}
    1.30 + \hline
    1.31 +{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.32 +{\tt VM ref } & self & reference to the object \\ \hline 
    1.33 +
    1.34 +{\tt int } & value & New value to set \\ \hline 
    1.35 +
    1.36 +\end{tabular}
    1.37 +
    1.38 +\vspace{0.3cm}
    1.39 +
    1.40 + \noindent {\bf Return Type:} 
    1.41 +{\tt 
    1.42 +void
    1.43 +}
    1.44 +
    1.45 +
    1.46 +
    1.47 +\vspace{0.3cm}
    1.48 +\vspace{0.3cm}
    1.49 +\vspace{0.3cm}
    1.50  \subsubsection{RPC name:~get\_VCPUs\_utilisation}
    1.51  
    1.52  {\bf Overview:}