diff --git a/ChangeLog b/ChangeLog index 3aec6a5502..7986349aaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 11 13:08:01 CEST 2006 Daniel Veillard + + * configure.in: updated python detection code from latest libxml2 one + * docs//*: rebuilt the docs + Thu Aug 10 15:28:52 CEST 2006 Daniel Veillard * src/xml.c: markmc pointed out that using number(xpath) could lead diff --git a/configure.in b/configure.in index fc5694e723..e0229abfa7 100644 --- a/configure.in +++ b/configure.in @@ -186,6 +186,7 @@ if test "$with_python" != "no" ; then if test -x "$PYTHON" then echo Found python in environment PYTHON=$PYTHON + with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` else AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) fi @@ -202,17 +203,17 @@ if test "$with_python" != "no" ; then -d $with_python/lib/python$PYTHON_VERSION/site-packages then PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION - PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages else if test -r $prefix/include/python$PYTHON_VERSION/Python.h then - PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)' - PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' + PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages else if test -r /usr/include/python$PYTHON_VERSION/Python.h then PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION - PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages' + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages else echo could not find python$PYTHON_VERSION/Python.h fi @@ -227,7 +228,7 @@ if test "$with_python" != "no" ; then then pythondir='$(PYTHON_SITE_PACKAGES)' else - pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages' + pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages' fi else PYTHON= @@ -240,11 +241,10 @@ else PYTHON_SUBDIR= fi AC_SUBST(pythondir) -AC_SUBST(PYTHON) +AC_SUBST(PYTHON_SUBDIR) AC_SUBST(PYTHON_VERSION) AC_SUBST(PYTHON_INCLUDES) AC_SUBST(PYTHON_SITE_PACKAGES) -AC_SUBST(PYTHON_SUBDIR) # very annoying rm -f COPYING diff --git a/docs/APIchunk0.html b/docs/APIchunk0.html index 48c48ec087..57e66e2e72 100644 --- a/docs/APIchunk0.html +++ b/docs/APIchunk0.html @@ -1,27 +1,56 @@ -API Alphabetic Index A-c for libvirt

API Alphabetic Index A-c for libvirt

A-c -d-l -m-r -s-z -

Letter A:

APIs
virConnectOpenReadOnly
+API Alphabetic Index A-a for libvirt

API Alphabetic Index A-a for libvirt

A-a +b-f +g-n +o-s +t-z +

Letter A:

API
VIR_COPY_CPUMAP
+VIR_CPU_USABLE
+VIR_UNUSE_CPU
+VIR_USE_CPU
+virDomainGetVcpus
+
APIs
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
+virConnectOpenReadOnly
After
virDomainSave
-

Letter C:

CPU
_virDomainInfo
+

Letter B:

Bytes
virDomainPinVcpu
+

Letter C:

CPU
VIR_UNUSE_CPU
+VIR_USE_CPU
+_virDomainInfo
_virNodeInfo
+_virVcpuInfo
+cpu
+vcpu
+virDomainGetVcpus
+virDomainPinVcpu
virDomainSuspend
-
CPUs
_virDomainInfo
+
CPU0-7
virDomainPinVcpu
+
CPUs
VIR_NODEINFO_MAXCPUS
+_virDomainInfo
_virNodeInfo
+cpumap
+virDomainGetVcpus
+virDomainPinVcpu
+virDomainSetVcpus
Collect
virConnectListDomains
Copy
virConnCopyLastError
virCopyLastError

Letter D:

Default
virDefaultErrorFunc
Destroy
virDomainDestroy
Domain0
virDomainGetMaxMemory
+virDomainGetVcpus
+virDomainPinVcpu
virDomainSetMaxMemory
virDomainSetMemory
-
Dynamically
virDomainSetMaxMemory
+virDomainSetVcpus
+
Dynamically
virDomainPinVcpu
+virDomainSetMaxMemory
virDomainSetMemory
-

Letter E:

Extract
virDomainGetInfo
+virDomainSetVcpus
+

Letter E:

Each
virDomainPinVcpu
+
Extract
virDomainGetInfo
+virDomainGetVcpus
virNodeGetInfo

Letter F:

For
virDomainGetUUIDString
Free
virDomainFree
@@ -42,34 +71,18 @@

Letter L:

Launch
virDomainCreateLinux
Linux
virDomainCreateLinux

Letter M:

Macro
LIBVIR_VERSION_NUMBER
-

Letter N:

NULL
virConnGetLastError
-virConnSetErrorFunc
-virConnectGetType
-virConnectOpen
-virConnectOpenReadOnly
-virDomainCreateLinux
-virDomainDefineXML
-virDomainGetMaxMemory
-virDomainGetName
-virDomainGetOSType
-virDomainGetXMLDesc
-virDomainLookupByID
-virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-virDomainSetMaxMemory
-virDomainSetMemory
-virGetLastError
-virGetVersion
-virSetErrorFunc
-
NUMA
_virNodeInfo
+

Letter N:

NUMA
_virNodeInfo
Note
virDomainGetInfo
virDomainReboot
+virDomainSetVcpus
virDomainShutdown
-

Letter O:

OUT
virConnectGetVersion
+

Letter O:

OUT
cpumap
+virConnectGetVersion
+virDomainGetVcpus
virGetVersion
One
virConnCopyLastError
virCopyLastError
+virDomainGetVcpus

Letter P:

Provide
virConnGetLastError
virDomainGetXMLDesc
virGetLastError
@@ -91,23 +104,34 @@ virGetLastError
Suspends
virDomainSuspend

Letter T:

TODO:
virDomainShutdown
-
This
virConnectClose
+
This
VIR_COPY_CPUMAP
+VIR_CPU_USABLE
+VIR_GET_CPUMAP
+VIR_NODEINFO_MAXCPUS
+VIR_UNUSE_CPU
+VIR_USE_CPU
+cpumap
+virConnectClose
virConnectGetVersion
virConnectOpen
virConnectOpenReadOnly
virDomainCreateLinux
virDomainDestroy
+virDomainPinVcpu
virDomainRestore
virDomainResume
virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainSuspend
Try
virDomainLookupByID
virDomainLookupByName
virDomainLookupByUUID
virDomainLookupByUUIDString
-

Letter U:

UTF-8
virDomainDefineXML
+

Letter U:

USE_CPU
VIR_UNUSE_CPU
+VIR_USE_CPU
+
UTF-8
virDomainDefineXML
virDomainGetXMLDesc
UUID
virDomainGetUUID
virDomainGetUUIDString
@@ -115,25 +139,34 @@ virDomainLookupByUUIDString
Use
virDomainSave
virDomainSuspend
+

Letter V:

VIR_COPY_CPUMAP
VIR_COPY_CPUMAP
+
VIR_CPU_USABLE
VIR_CPU_USABLE
+
VIR_GET_CPUMAP
VIR_GET_CPUMAP

Letter W:

What
_virError

Letter X:

XML
virDomainCreateLinux
virDomainDefineXML
virDomainGetXMLDesc
-
Xen
virGetVersion
+
Xen
virDomainGetVcpus
+virDomainPinVcpu
+virGetVersion

Letter a:

about
virDomainGetInfo
virDomainGetUUIDString
+virDomainGetVcpus
virNodeGetInfo
access
_virNodeInfo
virConnectGetVersion
virDomainCreateLinux
virDomainDestroy
+virDomainPinVcpu
virDomainResume
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainSuspend
accesses
virConnGetLastError
virGetLastError
-
active
_virNodeInfo
+
active
VIR_NODEINFO_MAXCPUS
+_virNodeInfo
virConnectListDomains
virConnectNumOfDomains
virDomainSuspend
@@ -144,14 +177,19 @@
against
virGetVersion
alive
virDomainFree
all
virDomainDestroy
-
allocated
virDomainGetInfo
+virDomainGetVcpus
+
allocated
cpumap
+virDomainGetInfo
virDomainGetMaxMemory
+virDomainGetVcpus
+virDomainPinVcpu
virDomainSetMaxMemory
virDomainSetMemory
virDomainSuspend
virNodeGetInfo
allowed
_virDomainInfo
already
virDomainDestroy
+
also
virDomainGetVcpus
amount
virDomainGetMaxMemory
virDomainSetMaxMemory
virDomainSetMemory
@@ -161,95 +199,31 @@ virDomainSetMaxMemory
virDomainSetMemory
applications
virInitialize
+
arbitrary
virDomainSetVcpus
are
virConnectClose
virConnectOpenReadOnly
virDomainDestroy
+virDomainPinVcpu
virSetErrorFunc
argument
virConnectOpen
virConnectOpenReadOnly
-
array
virConnectListDefinedDomains
+
array
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
+cpumaps
+virConnectListDefinedDomains
virConnectListDomains
virDomainGetUUID
virDomainGetUUIDString
-
assumed
virGetVersion
+virDomainGetVcpus
+
assumed
virDomainGetVcpus
+virGetVersion
available
_virError
virConnectOpenReadOnly
availble
virGetVersion
avoid
virInitialize
-

Letter b:

back
virConnSetErrorFunc
-virDomainDestroy
-virGetVersion
-
based
virDomainCreateLinux
-virDomainLookupByID
-virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-
being
virDomainReboot
-virDomainShutdown
-virErrorFunc
-virResetError
-
better
virInitialize
-
block
_virDomainKernel
-
but
virConnGetLastError
-virDomainDefineXML
-virDomainReboot
-virDomainShutdown
-virDomainSuspend
-virDomainUndefine
-virGetLastError
-
bytes
virDomainGetUUID
-virDomainGetUUIDString
-

Letter c:

call
virConnectGetVersion
-virDomainCreate
-virDomainDestroy
-virDomainSave
-virInitialize
-
callback
virConnSetErrorFunc
-virErrorFunc
-virSetErrorFunc
-
called
virConnSetErrorFunc
-virConnectClose
-virConnectOpen
-virConnectOpenReadOnly
-virSetErrorFunc
-
caller
virDomainGetOSType
-virDomainGetXMLDesc
-
calling
virDomainResume
-
can
virConnectGetVersion
-virDomainGetInfo
-
capacities
virConnectGetVersion
-
caught
virConnCopyLastError
-virConnGetLastError
-virConnResetLastError
-virCopyLastError
-virGetLastError
-virResetLastError
-virSetErrorFunc
-
cell
_virNodeInfo
-
change
virDomainSetMaxMemory
-virDomainSetMemory
-
clean
virResetError
-
closes
virConnectClose
-
code
_virError
-virConnCopyLastError
-virCopyLastError
-virGetVersion
-
collect
virConnectListDomains
-
command
_virDomainKernel
-
compiled
virGetVersion
-
consequent
_virError
-
content
virConnCopyLastError
-virCopyLastError
-
contents
virDomainSave
-
control
virConnectOpenReadOnly
-
copy
virConnCopyLastError
-virCopyLastError
-
core
_virNodeInfo
-
could
virSetErrorFunc
-
currently
virConnectOpen
-virConnectOpenReadOnly
-

A-c -d-l -m-r -s-z +

A-a +b-f +g-n +o-s +t-z

diff --git a/docs/APIchunk1.html b/docs/APIchunk1.html index 19e64d6e37..6e1a83abc3 100644 --- a/docs/APIchunk1.html +++ b/docs/APIchunk1.html @@ -1,10 +1,126 @@ -API Alphabetic Index d-l for libvirt

API Alphabetic Index d-l for libvirt

A-c -d-l -m-r -s-z -

Letter d:

data
virConnSetErrorFunc
+API Alphabetic Index b-f for libvirt

API Alphabetic Index b-f for libvirt

A-a +b-f +g-n +o-s +t-z +

Letter b:

back
virConnSetErrorFunc
+virDomainDestroy
+virGetVersion
+
based
virDomainCreateLinux
+virDomainLookupByID
+virDomainLookupByName
+virDomainLookupByUUID
+virDomainLookupByUUIDString
+
being
virDomainReboot
+virDomainShutdown
+virErrorFunc
+virResetError
+
better
virInitialize
+
bit
VIR_UNUSE_CPU
+VIR_USE_CPU
+cpumap
+virDomainGetVcpus
+virDomainPinVcpu
+
block
_virDomainKernel
+
but
VIR_NODEINFO_MAXCPUS
+virConnGetLastError
+virDomainDefineXML
+virDomainReboot
+virDomainShutdown
+virDomainSuspend
+virDomainUndefine
+virGetLastError
+
byte
virDomainPinVcpu
+
bytes
cpumap
+cpumaps
+maplen
+virDomainGetUUID
+virDomainGetUUIDString
+virDomainGetVcpus
+virDomainPinVcpu
+

Letter c:

calculate
VIR_NODEINFO_MAXCPUS
+
call
virConnectGetVersion
+virDomainCreate
+virDomainDestroy
+virDomainSave
+virDomainSetVcpus
+virInitialize
+
callback
virConnSetErrorFunc
+virErrorFunc
+virSetErrorFunc
+
called
virConnSetErrorFunc
+virConnectClose
+virConnectOpen
+virConnectOpenReadOnly
+virSetErrorFunc
+
caller
cpumap
+virDomainGetOSType
+virDomainGetXMLDesc
+
calling
virDomainResume
+
calloc
virDomainGetVcpus
+
can
virConnectGetVersion
+virDomainGetInfo
+virDomainPinVcpu
+
capacities
virConnectGetVersion
+
caught
virConnCopyLastError
+virConnGetLastError
+virConnResetLastError
+virCopyLastError
+virGetLastError
+virResetLastError
+virSetErrorFunc
+
cell
_virNodeInfo
+
change
virDomainPinVcpu
+virDomainSetMaxMemory
+virDomainSetMemory
+virDomainSetVcpus
+
clean
virResetError
+
closes
virConnectClose
+
code
_virError
+virConnCopyLastError
+virCopyLastError
+virDomainPinVcpu
+virGetVersion
+
collect
virConnectListDomains
+
command
_virDomainKernel
+
compiled
virGetVersion
+
conjonction
VIR_COPY_CPUMAP
+VIR_CPU_USABLE
+VIR_GET_CPUMAP
+VIR_UNUSE_CPU
+VIR_USE_CPU
+
consequent
_virError
+
content
virConnCopyLastError
+virCopyLastError
+
contents
virDomainSave
+
control
virConnectOpenReadOnly
+
copy
VIR_COPY_CPUMAP
+virConnCopyLastError
+virCopyLastError
+
core
_virNodeInfo
+
corresponding
virDomainPinVcpu
+
could
virSetErrorFunc
+
cpu
VIR_CPU_USABLE
+VIR_UNUSE_CPU
+VIR_USE_CPU
+
cpumap
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
+VIR_UNUSE_CPU
+VIR_USE_CPU
+cpumap
+cpumaps
+maplen
+virDomainGetVcpus
+virDomainPinVcpu
+
cpumaps
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
+virDomainGetVcpus
+
cupmap
virDomainGetVcpus
+
currently
virConnectOpen
+virConnectOpenReadOnly
+

Letter d:

data
virConnSetErrorFunc
virDomainDestroy
virDomainFree
virErrorFunc
@@ -16,6 +132,7 @@
defined
virConnectListDefinedDomains
virDomainCreate
virDomainUndefine
+
described
virDomainGetVcpus
description
virDomainCreateLinux
virDomainDefineXML
virDomainGetXMLDesc
@@ -25,6 +142,7 @@
doable
virDomainShutdown
does
virDomainDefineXML
virDomainDestroy
+virDomainSetVcpus
virDomainUndefine
domains
virConnectListDefinedDomains
virConnectListDomains
@@ -33,34 +151,41 @@ virDomainCreate
down
virDomainDestroy
driver
virGetVersion
-

Letter e:

encoded
virDomainGetXMLDesc
+

Letter e:

each
virDomainPinVcpu
+
encoded
virDomainGetXMLDesc
especially
virConnectClose
expected
_virNodeInfo
extra
_virError
virDomainReboot
+
extract
VIR_COPY_CPUMAP
extracted
virConnectGetVersion
virDomainGetInfo
extraction
virDomainGetXMLDesc
-

Letter f:

failure
virDomainCreateLinux
+

Letter f:

fail
virDomainSetVcpus
+
failure
virDomainCreateLinux
virDomainDestroy
virDomainFree
virDomainGetInfo
+virDomainGetVcpus
virDomainLookupByID
virDomainLookupByName
virDomainLookupByUUID
virDomainLookupByUUIDString
+virDomainPinVcpu
virDomainReboot
virDomainRestore
virDomainResume
virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainShutdown
virDomainSuspend
virGetVersion
virNodeGetInfo
file
virDomainSave
filename
_virDomainKernel
+
filled
virDomainGetVcpus
find
virDomainLookupByID
first
virConnectOpen
virConnectOpenReadOnly
@@ -75,17 +200,21 @@ virDomainGetName
virDomainGetUUID
virDomainGetUUIDString
+virDomainGetVcpus
virDomainLookupByName
virDomainLookupByUUID
virDomainLookupByUUIDString
+virDomainPinVcpu
virDomainReboot
virDomainSave
+virDomainSetVcpus
virDomainShutdown
virErrorFunc
virGetLastError
virGetVersion
virSetErrorFunc
-
format
virGetVersion
+
format
virDomainGetVcpus
+virGetVersion
found
virConnCopyLastError
virConnectListDomains
virConnectNumOfDomains
@@ -97,7 +226,12 @@ virDomainFree
virDomainGetOSType
frequency
_virNodeInfo
-
from
virDomainCreate
+
from
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
+_virVcpuInfo
+virDomainCreate
+virDomainGetVcpus
+virDomainPinVcpu
virDomainResume
frozen
virDomainResume
virDomainSuspend
@@ -107,107 +241,20 @@ virConnectOpenReadOnly
virDomainCreateLinux
virDomainDestroy
+virDomainPinVcpu
virDomainResume
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainSuspend
virErrorFunc
virSetErrorFunc
functionalities
virConnectOpenReadOnly
further
virConnectClose
virDomainSuspend
-

Letter g:

general
virDomainShutdown
-
get
virConnSetErrorFunc
-virConnectOpen
-virConnectOpenReadOnly
-virDomainGetInfo
-virDomainGetMaxMemory
-virSetErrorFunc
-
given
virDomainDestroy
-virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-
global
virConnSetErrorFunc
-virSetErrorFunc
-
guest
virDomainCreateLinux
-virDomainReboot
-virDomainShutdown
-

Letter h:

handler
virConnSetErrorFunc
-virSetErrorFunc
-
handling
virConnSetErrorFunc
-virSetErrorFunc
-
hardware
virNodeGetInfo
-
have
virGetVersion
-
how
_virError
-
human-readable
_virError
-

Letter i:

ignore
virDomainReboot
-virDomainShutdown
-
image
_virDomainKernel
-
indicating
_virNodeInfo
-
information
_virError
-virDomainGetInfo
-virDomainGetUUIDString
-virGetVersion
-virNodeGetInfo
-
informations
virDomainGetInfo
-
informative
_virError
-
init
_virDomainKernel
-
initializing
virInitialize
-
instance
virDomainDestroy
-virDomainFree
-virDomainGetXMLDesc
-
int
virDomainGetID
-
interaction
virConnectClose
-
its
virDomainGetName
-virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-virDomainSave
-

Letter k:

kept
virDomainFree
-
kernel
_virDomainKernel
-
kilobytes
_virNodeInfo
-virDomainGetMaxMemory
-virDomainSetMaxMemory
-virDomainSetMemory
-
knowing
virDomainShutdown
-

Letter l:

lack
virConnectGetVersion
-
last
virConnCopyLastError
-virConnGetLastError
-virConnResetLastError
-virCopyLastError
-virGetLastError
-virResetLastError
-
later
virDomainGetXMLDesc
-
launch
virDomainCreate
-
level
virConnectGetVersion
-virCopyLastError
-virDomainSuspend
-virGetLastError
-virResetLastError
-virSetErrorFunc
-
libbrary
virConnectOpenReadOnly
-
library
LIBVIR_VERSION_NUMBER
-_virError
-virConnSetErrorFunc
-virCopyLastError
-virErrorFunc
-virGetLastError
-virGetVersion
-virInitialize
-virResetLastError
-virSetErrorFunc
-
lifetime
virDomainGetName
-
limited
virDomainGetInfo
-
line
_virDomainKernel
-
list
virConnectListDefinedDomains
-virConnectListDomains
-
listed
virDomainSave
-
looked
virGetVersion
-
lookup
virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-

A-c -d-l -m-r -s-z +

A-a +b-f +g-n +o-s +t-z

diff --git a/docs/APIchunk2.html b/docs/APIchunk2.html index 14c1619ac6..5a1e5f6e7f 100644 --- a/docs/APIchunk2.html +++ b/docs/APIchunk2.html @@ -1,14 +1,134 @@ -API Alphabetic Index m-r for libvirt

API Alphabetic Index m-r for libvirt

A-c -d-l -m-r -s-z -

Letter m:

major
virConnectGetVersion
+API Alphabetic Index g-n for libvirt

API Alphabetic Index g-n for libvirt

A-a +b-f +g-n +o-s +t-z +

Letter g:

general
virDomainShutdown
+
get
virConnSetErrorFunc
+virConnectOpen
+virConnectOpenReadOnly
+virDomainGetInfo
+virDomainGetMaxMemory
+virSetErrorFunc
+
given
virDomainDestroy
+virDomainLookupByName
+virDomainLookupByUUID
+virDomainLookupByUUIDString
+
global
virConnSetErrorFunc
+virSetErrorFunc
+
growing
virDomainSetVcpus
+
guest
virDomainCreateLinux
+virDomainReboot
+virDomainShutdown
+

Letter h:

handler
virConnSetErrorFunc
+virSetErrorFunc
+
handling
virConnSetErrorFunc
+virSetErrorFunc
+
hardware
virNodeGetInfo
+
has
virDomainGetVcpus
+
have
virGetVersion
+
host
VIR_NODEINFO_MAXCPUS
+
how
_virError
+
human-readable
_virError
+

Letter i:

ie:
cpumap
+virDomainGetVcpus
+
ignore
virDomainReboot
+virDomainShutdown
+
image
_virDomainKernel
+
indicating
_virNodeInfo
+
info
virDomainGetVcpus
+
information
_virError
+virDomainGetInfo
+virDomainGetUUIDString
+virDomainGetVcpus
virGetVersion
+virNodeGetInfo
+
informative
_virError
+
init
_virDomainKernel
+
initializing
virInitialize
+
inside
virDomainGetVcpus
+
instance
nodeinfo
+virDomainDestroy
+virDomainFree
+virDomainGetXMLDesc
+
int
virDomainGetID
+
interaction
virConnectClose
+
into
VIR_COPY_CPUMAP
+
its
virDomainGetName
+virDomainLookupByName
+virDomainLookupByUUID
+virDomainLookupByUUIDString
+virDomainSave
+

Letter k:

kept
virDomainFree
+
kernel
_virDomainKernel
+
kilobytes
_virNodeInfo
+virDomainGetMaxMemory
+virDomainSetMaxMemory
+virDomainSetMemory
+
knowing
virDomainShutdown
+

Letter l:

lack
virConnectGetVersion
+
last
virConnCopyLastError
+virConnGetLastError
+virConnResetLastError
+virCopyLastError
+virGetLastError
+virResetLastError
+
later
VIR_COPY_CPUMAP
+virDomainGetXMLDesc
+
launch
virDomainCreate
+
least
virDomainPinVcpu
+
length
maplen
+
level
virConnectGetVersion
+virCopyLastError
+virDomainSuspend
+virGetLastError
+virResetLastError
+virSetErrorFunc
+
libbrary
virConnectOpenReadOnly
+
library
LIBVIR_VERSION_NUMBER
+_virError
+virConnSetErrorFunc
+virCopyLastError
+virErrorFunc
+virGetLastError
+virGetVersion
+virInitialize
+virResetLastError
+virSetErrorFunc
+
lifetime
virDomainGetName
+
limited
virDomainGetInfo
+virDomainSetVcpus
+
line
_virDomainKernel
+
list
virConnectListDefinedDomains
+virConnectListDomains
+
listed
virDomainSave
+
little-endian
virDomainPinVcpu
+
looked
virGetVersion
+
lookup
virDomainLookupByName
+virDomainLookupByUUID
+virDomainLookupByUUIDString
+
lowest
virDomainPinVcpu
+

Letter m:

macro
VIR_COPY_CPUMAP
+VIR_CPU_USABLE
+VIR_GET_CPUMAP
+VIR_NODEINFO_MAXCPUS
+VIR_UNUSE_CPU
+VIR_USE_CPU
+
major
virConnectGetVersion
+virGetVersion
+
malloc
cpumap
+
map
cpumap
+virDomainGetVcpus
+virDomainPinVcpu
+
maplen
cpumap
+virDomainGetVcpus
+virDomainPinVcpu
maximum
_virDomainInfo
virDomainGetMaxMemory
virDomainSetMaxMemory
+
maxinfo
virDomainGetVcpus
may
virConnGetLastError
virConnectGetVersion
virDomainCreateLinux
@@ -18,13 +138,16 @@ virDomainResume
virDomainSave
virDomainSetMemory
+virDomainSetVcpus
virDomainShutdown
virDomainSuspend
virGetLastError
+
means
virDomainPinVcpu
mem
_virNodeInfo
memory
_virDomainInfo
_virNodeInfo
virDomainGetMaxMemory
+virDomainGetVcpus
virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
@@ -37,6 +160,7 @@
minor
LIBVIR_VERSION_NUMBER
virConnectGetVersion
virGetVersion
+
missing
virDomainPinVcpu
model
_virNodeInfo
monitoring
virConnectClose
more
virDomainGetUUIDString
@@ -44,13 +168,17 @@
multithreaded
virConnGetLastError
virGetLastError
virInitialize
-
must
virDomainGetOSType
+
must
cpumap
+virDomainGetOSType
+virDomainGetVcpus
virDomainGetXMLDesc

Letter n:

name
virConnectGetType
virDomainGetName
virDomainLookupByName
names
virConnectListDefinedDomains
nanoseconds
_virDomainInfo
+_virVcpuInfo
+
neccessarily
VIR_NODEINFO_MAXCPUS
need
virConnCopyLastError
virConnectClose
virCopyLastError
@@ -62,11 +190,15 @@ virDomainLookupByName
virDomainLookupByUUID
virDomainLookupByUUIDString
+virDomainSetVcpus
node
_virNodeInfo
virNodeGetInfo
+
non
VIR_CPU_USABLE
none
virConnGetLastError
virGetLastError
-
not
virConnGetLastError
+
not
VIR_NODEINFO_MAXCPUS
+VIR_UNUSE_CPU
+virConnGetLastError
virConnectClose
virConnectGetVersion
virDomainDefineXML
@@ -76,158 +208,14 @@ virDomainGetXMLDesc
virDomainReboot
virDomainSave
+virDomainSetVcpus
virDomainShutdown
virDomainUndefine
virGetLastError
virGetVersion
-
number
_virDomainInfo
-_virError
-_virNodeInfo
-virConnectListDefinedDomains
-virConnectListDomains
-virConnectNumOfDomains
-virDomainGetID
-virDomainLookupByID
-

Letter o:

object
virDomainCreateLinux
-virDomainDestroy
-virDomainFree
-virDomainGetID
-virDomainGetInfo
-virDomainGetMaxMemory
-virDomainGetName
-virDomainGetOSType
-virDomainGetUUID
-virDomainGetUUIDString
-virDomainGetXMLDesc
-virDomainLookupByID
-virDomainLookupByName
-virDomainLookupByUUID
-virDomainLookupByUUIDString
-virDomainReboot
-virDomainResume
-virDomainSave
-virDomainSetMaxMemory
-virDomainSetMemory
-virDomainShutdown
-virDomainSuspend
-
occured
virConnGetLastError
-virGetLastError
-
one
_virDomainInfo
-virDomainCreateLinux
-
only
virConnectGetVersion
-virDomainGetInfo
-
operation
virDomainGetOSType
-virDomainReboot
-
option
virDomainShutdown
-
optional
_virDomainKernel
-virConnectOpen
-virConnectOpenReadOnly
-virDomainCreateLinux
-
otherwise
virConnCopyLastError
-virConnectGetType
-virConnectGetVersion
-virCopyLastError
-virDomainDefineXML
-virGetVersion
-
output
virDomainSave
-

Letter p:

parameter
virConnCopyLastError
-virCopyLastError
-
parameters
_virDomainKernel
-
part
_virError
-
partial
virDomainGetInfo
-
pass
virConnSetErrorFunc
-virConnectOpen
-virConnectOpenReadOnly
-
path
virDomainRestore
-virDomainSave
-
per
_virNodeInfo
-
physical
virDomainGetMaxMemory
-virDomainSetMaxMemory
-virDomainSetMemory
-
pointed
virResetError
-
pointers
virConnectListDefinedDomains
-
pointing
_virDomainKernel
-
pools
virDomainCreate
-
potential
virInitialize
-
preferably
virDomainDefineXML
-
printing
virSetErrorFunc
-
priviledged
virConnectGetVersion
-virDomainCreateLinux
-virDomainDestroy
-virDomainResume
-virDomainSetMaxMemory
-virDomainSetMemory
-virDomainSuspend
-
problem
virDomainSave
-
process
virDomainResume
-virDomainSuspend
-
provided
virConnSetErrorFunc
-virConnectListDefinedDomains
-virErrorFunc
-virSetErrorFunc
-
providing
LIBVIR_VERSION_NUMBER
-
public
virDomainGetName
-

Letter r:

race
virInitialize
-
raised
_virError
-virErrorFunc
-virSetErrorFunc
-
ramdisk
_virDomainKernel
-
raw
virDomainLookupByUUID
-
reactivate
virDomainSuspend
-
reboot
virDomainReboot
-virDomainShutdown
-
receive
virConnCopyLastError
-virCopyLastError
-
relaunch
virDomainGetXMLDesc
-
release
virConnectGetVersion
-virGetVersion
-
reporting
virDefaultErrorFunc
-
request
virDomainReboot
-virDomainShutdown
-
requires
virDomainCreateLinux
-virDomainDestroy
-virDomainResume
-virDomainSetMaxMemory
-virDomainSetMemory
-virDomainSuspend
-
reserved
virDomainGetMaxMemory
-virDomainSetMaxMemory
-virDomainSetMemory
-
reset
virConnSetErrorFunc
-virSetErrorFunc
-
resources
virDomainDestroy
-virDomainSuspend
-
restart
virDomainReboot
-
restarted
virDomainResume
-
restore
virDomainRestore
-virDomainSave
-
restricted
virConnectOpenReadOnly
-
result
virConnCopyLastError
-virCopyLastError
-
return
virConnectGetVersion
-virDomainDestroy
-virGetVersion
-
returned
virDomainCreateLinux
-virDomainGetXMLDesc
-virGetVersion
-
returns
virConnectGetVersion
-
reused
virDomainGetXMLDesc
-
root
_virDomainKernel
-
routine
virDefaultErrorFunc
-virInitialize
-
running
_virDomainInfo
-virConnectClose
-virConnectGetVersion
-virDomainCreate
-virDomainDestroy
-virDomainFree
-virDomainSave
-virDomainUndefine
-
runs
virDomainGetMaxMemory
-virDomainSetMaxMemory
-virDomainSetMemory
-

A-c -d-l -m-r -s-z +

A-a +b-f +g-n +o-s +t-z

diff --git a/docs/APIchunk3.html b/docs/APIchunk3.html index 25aa8670f0..5d9ea8f879 100644 --- a/docs/APIchunk3.html +++ b/docs/APIchunk3.html @@ -1,18 +1,184 @@ -API Alphabetic Index s-z for libvirt

API Alphabetic Index s-z for libvirt

A-c -d-l -m-r -s-z -

Letter s:

same
virDomainGetName
+API Alphabetic Index o-s for libvirt

API Alphabetic Index o-s for libvirt

A-a +b-f +g-n +o-s +t-z +

Letter o:

object
virDomainCreateLinux
+virDomainDestroy
+virDomainFree
+virDomainGetID
+virDomainGetInfo
+virDomainGetMaxMemory
+virDomainGetName
+virDomainGetOSType
+virDomainGetUUID
+virDomainGetUUIDString
+virDomainGetVcpus
+virDomainGetXMLDesc
+virDomainLookupByID
+virDomainLookupByName
+virDomainLookupByUUID
+virDomainLookupByUUIDString
+virDomainPinVcpu
+virDomainReboot
+virDomainResume
+virDomainSave
+virDomainSetMaxMemory
+virDomainSetMemory
+virDomainSetVcpus
+virDomainShutdown
+virDomainSuspend
+
occured
virConnGetLastError
+virGetLastError
+
offline
_virVcpuInfo
+
one
_virDomainInfo
+maplen
+virDomainCreateLinux
+virDomainGetVcpus
+
only
virConnectGetVersion
+virDomainGetInfo
+
operation
virDomainGetOSType
+virDomainReboot
+
option
virDomainShutdown
+
optional
_virDomainKernel
+virConnectOpen
+virConnectOpenReadOnly
+virDomainCreateLinux
+
order:
virDomainPinVcpu
+
otherwise
VIR_CPU_USABLE
+virConnCopyLastError
+virConnectGetType
+virConnectGetVersion
+virCopyLastError
+virDomainDefineXML
+virGetVersion
+
output
virDomainSave
+

Letter p:

parameter
virConnCopyLastError
+virCopyLastError
+
parameters
_virDomainKernel
+
part
_virError
+
partial
virDomainGetInfo
+
pass
virConnSetErrorFunc
+virConnectOpen
+virConnectOpenReadOnly
+
path
virDomainRestore
+virDomainSave
+
per
_virNodeInfo
+
physical
cpu
+virDomainGetMaxMemory
+virDomainSetMaxMemory
+virDomainSetMemory
+
pointed
virResetError
+
pointers
virConnectListDefinedDomains
+
pointing
_virDomainKernel
+
pools
virDomainCreate
+
potential
virInitialize
+
preferably
virDomainDefineXML
+
previously
cpumap
+
printing
virSetErrorFunc
+
priviledged
virConnectGetVersion
+virDomainCreateLinux
+virDomainDestroy
+virDomainPinVcpu
+virDomainResume
+virDomainSetMaxMemory
+virDomainSetMemory
+virDomainSetVcpus
+virDomainSuspend
+
problem
virDomainSave
+
process
virDomainResume
+virDomainSuspend
+
provided
virConnSetErrorFunc
+virConnectListDefinedDomains
+virErrorFunc
+virSetErrorFunc
+
providing
LIBVIR_VERSION_NUMBER
+
public
virDomainGetName
+

Letter r:

race
virInitialize
+
raised
_virError
+virErrorFunc
+virSetErrorFunc
+
ramdisk
_virDomainKernel
+
raw
virDomainLookupByUUID
+
reactivate
virDomainSuspend
+
real
_virVcpuInfo
+cpumap
+virDomainGetVcpus
+virDomainPinVcpu
+
reboot
virDomainReboot
+virDomainShutdown
+
receive
virConnCopyLastError
+virCopyLastError
+
related
VIR_UNUSE_CPU
+VIR_USE_CPU
+
relaunch
virDomainGetXMLDesc
+
release
virConnectGetVersion
+virGetVersion
+
reporting
virDefaultErrorFunc
+
request
virDomainReboot
+virDomainShutdown
+
requires
virDomainCreateLinux
+virDomainDestroy
+virDomainPinVcpu
+virDomainResume
+virDomainSetMaxMemory
+virDomainSetMemory
+virDomainSetVcpus
+virDomainSuspend
+
reserved
virDomainGetMaxMemory
+virDomainSetMaxMemory
+virDomainSetMemory
+
reset
VIR_UNUSE_CPU
+virConnSetErrorFunc
+virSetErrorFunc
+
resources
virDomainDestroy
+virDomainSuspend
+
restart
virDomainReboot
+
restarted
virDomainResume
+
restore
virDomainRestore
+virDomainSave
+
restricted
virConnectOpenReadOnly
+
result
virConnCopyLastError
+virCopyLastError
+
return
virConnectGetVersion
+virDomainDestroy
+virGetVersion
+
returned
virDomainCreateLinux
+virDomainGetVcpus
+virDomainGetXMLDesc
+virDomainPinVcpu
+virGetVersion
+
returns
VIR_CPU_USABLE
+VIR_GET_CPUMAP
+virConnectGetVersion
+
reused
virDomainGetXMLDesc
+
root
_virDomainKernel
+
routine
virDefaultErrorFunc
+virInitialize
+
running
_virDomainInfo
+virConnectClose
+virConnectGetVersion
+virDomainCreate
+virDomainDestroy
+virDomainFree
+virDomainSave
+virDomainUndefine
+
runs
virDomainGetMaxMemory
+virDomainSetMaxMemory
+virDomainSetMemory
+

Letter s:

same
virDomainGetName
save
virDomainSave
saved
virDomainRestore
saving
virDomainSave
see
virDomainGetUUIDString
-
set
virConnectOpenReadOnly
+
set
VIR_USE_CPU
+virConnectOpenReadOnly
virDomainCreateLinux
virDomainGetInfo
virDomainGetXMLDesc
+virDomainPinVcpu
should
virConnectClose
virConnectOpen
virConnectOpenReadOnly
@@ -20,15 +186,20 @@ virDomainFree
virDomainShutdown
shutdown
virDomainDestroy
+
significant
virDomainPinVcpu
similar
virDomainCreateLinux
size
_virNodeInfo
virConnectListDefinedDomains
virConnectListDomains
virDomainGetMaxMemory
+virDomainGetVcpus
+virDomainPinVcpu
virDomainSetMaxMemory
virDomainSetMemory
socket
_virNodeInfo
software
virConnectGetType
+
specified
VIR_COPY_CPUMAP
+VIR_GET_CPUMAP
start
virDomainDefineXML
startup
virInitialize
state
_virDomainInfo
@@ -45,6 +216,8 @@
store
virConnectListDefinedDomains
virConnectListDomains
virConnectOpen
+virDomainGetVcpus
+
stored
virDomainPinVcpu
stores
virConnectListDefinedDomains
string
_virError
_virNodeInfo
@@ -57,6 +230,7 @@ virDomainFree
virDomainGetInfo
virNodeGetInfo
+
structures
virDomainGetVcpus
succeed
virDomainCreate
success
virConnectClose
virDomainCreate
@@ -65,12 +239,15 @@ virDomainGetInfo
virDomainGetUUID
virDomainGetUUIDString
+virDomainGetVcpus
+virDomainPinVcpu
virDomainReboot
virDomainRestore
virDomainResume
virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainShutdown
virDomainSuspend
virDomainUndefine
@@ -79,133 +256,16 @@
successful
virDomainSave
suitable
virConnGetLastError
virGetLastError
+
support
virDomainSetVcpus
+
supported
VIR_NODEINFO_MAXCPUS
suspend
virDomainSave
suspended
virDomainResume
system
virDomainGetOSType
-

Letter t:

target
virConnCopyLastError
-virCopyLastError
-virDomainSetMemory
-
terminated
virConnectGetType
-virDomainGetXMLDesc
-
that
virConnCopyLastError
-virConnGetLastError
-virConnResetLastError
-virDomainGetInfo
-virDomainGetName
-virDomainReboot
-virDomainShutdown
-
their
virConnectListDomains
-
then
virConnectOpenReadOnly
-virDomainGetMaxMemory
-virDomainSetMaxMemory
-virDomainSetMemory
-
there
virConnectClose
-virDomainReboot
-virDomainShutdown
-virErrorFunc
-virSetErrorFunc
-
thereafter
virDomainDestroy
-virDomainFree
-
this
_virError
-virDomainGetMaxMemory
-virDomainSave
-virDomainSetMaxMemory
-virDomainSetMemory
-virInitialize
-
those
virSetErrorFunc
-
threads
_virNodeInfo
-
time
_virDomainInfo
-
two
virGetVersion
-
type
virDomainGetOSType
-virGetVersion
-

Letter u:

undefine
virDomainUndefine
-
uniform
_virNodeInfo
-
unknown
virGetVersion
-
unsigned
virDomainGetID
-
unused
virConnectOpen
-virConnectOpenReadOnly
-
usable
virConnectOpenReadOnly
-virDomainReboot
-virDomainShutdown
-
use
virConnGetLastError
-virErrorFunc
-virGetLastError
-
used
_virDomainInfo
-virConnectGetType
-virDomainDestroy
-virDomainFree
-virDomainGetInfo
-virDomainGetXMLDesc
-virDomainReboot
-virDomainSuspend
-
user
virConnSetErrorFunc
-virDomainGetInfo
-virErrorFunc
-virNodeGetInfo
-virSetErrorFunc
-

Letter v:

value
virConnectGetVersion
-virDomainGetXMLDesc
-virGetVersion
-
values
virGetVersion
-
version
LIBVIR_VERSION_NUMBER
-virConnectGetVersion
-virGetVersion
-
virConnCopyLastError
virConnGetLastError
-
virCopyLastError
virGetLastError
-
virDomainCreateLinux
virDomainGetXMLDesc
-
virDomainFlags
_virDomainInfo
-virDomainCreateLinux
-
virDomainGetXMLDesc
virDomainCreateLinux
-
virDomainInfo
virDomainGetInfo
-
virDomainRestore
virDomainSave
-
virDomainResume
virDomainSuspend
-
virDomainSave
virDomainRestore
-
virError
virResetError
-
virErrorNumber
_virError
-
virNodeInfo
virNodeGetInfo
-
virResetError
virConnCopyLastError
-virCopyLastError
-
virSuspendDomain
virDomainResume
-
virtual
_virDomainInfo
-

Letter w:

was
virConnCopyLastError
-virCopyLastError
-virDomainResume
-virGetVersion
-
when
virErrorFunc
-virInitialize
-
where
virDomainGetMaxMemory
-virDomainResume
-virDomainSetMaxMemory
-virDomainSetMemory
-
which
virConnGetLastError
-virConnSetErrorFunc
-virConnectClose
-virGetLastError
-virGetVersion
-virSetErrorFunc
-
while
virGetVersion
-
will
virConnCopyLastError
-virConnSetErrorFunc
-virCopyLastError
-virDomainGetName
-virDomainRestore
-virDomainSave
-virDomainSuspend
-virGetVersion
-virSetErrorFunc
-
with
virConnCopyLastError
-virConnectClose
-virConnectGetVersion
-virCopyLastError
-virDomainGetXMLDesc
-
without
virDomainSuspend
-
work
virConnectGetVersion
-

Letter x:

xen
virConnectOpen
-

Letter y:

yet
virDomainGetXMLDesc
-virDomainReboot
-

Letter z:

zero
virConnectGetType
-

A-c -d-l -m-r -s-z +virDomainGetVcpus
+virDomainPinVcpu
+

A-a +b-f +g-n +o-s +t-z

diff --git a/docs/APIfiles.html b/docs/APIfiles.html index cdc8636d9c..57bad96397 100644 --- a/docs/APIfiles.html +++ b/docs/APIfiles.html @@ -1,6 +1,9 @@ List of Symbols per Module for libvirt

List of Symbols per Module for libvirt

Module libvirt:

LIBVIR_VERSION_NUMBER
+VIR_COPY_CPUMAP
+VIR_CPU_MAPLEN
+VIR_CPU_USABLE
VIR_DEVICE_DEFAULT
VIR_DEVICE_RO
VIR_DEVICE_RW
@@ -17,9 +20,17 @@ VIR_DOMAIN_RUNNING
VIR_DOMAIN_SHUTDOWN
VIR_DOMAIN_SHUTOFF
+VIR_GET_CPUMAP
+VIR_NODEINFO_MAXCPUS
+VIR_UNUSE_CPU
+VIR_USE_CPU
+VIR_VCPU_BLOCKED
+VIR_VCPU_OFFLINE
+VIR_VCPU_RUNNING
_virDomainInfo
_virDomainKernel
_virNodeInfo
+_virVcpuInfo
virConnect
virConnectClose
virConnectGetType
@@ -45,6 +56,7 @@ virDomainGetOSType
virDomainGetUUID
virDomainGetUUIDString
+virDomainGetVcpus
virDomainGetXMLDesc
virDomainInfo
virDomainInfoPtr
@@ -54,6 +66,7 @@ virDomainLookupByName
virDomainLookupByUUID
virDomainLookupByUUIDString
+virDomainPinVcpu
virDomainPtr
virDomainReboot
virDomainRestart
@@ -62,6 +75,7 @@ virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainShutdown
virDomainState
virDomainSuspend
@@ -71,6 +85,9 @@ virNodeGetInfo
virNodeInfo
virNodeInfoPtr
+virVcpuInfo
+virVcpuInfoPtr
+virVcpuState

Module virterror:

VIR_ERR_CALL_FAILED
VIR_ERR_DOM_EXIST
VIR_ERR_DRIVER_FULL
diff --git a/docs/APIfunctions.html b/docs/APIfunctions.html index 0bebb89495..45d6addc1e 100644 --- a/docs/APIfunctions.html +++ b/docs/APIfunctions.html @@ -4,8 +4,12 @@

Type const unsigned char *:

virDomainLookupByUUID

Type int *:

virConnectListDomains

Type unsigned char *:

virDomainGetUUID
+virDomainGetVcpus
+virDomainPinVcpu

Type unsigned int:

virDomainCreateLinux
+virDomainPinVcpu
virDomainReboot
+virDomainSetVcpus

Type unsigned long:

virDomainSetMaxMemory
virDomainSetMemory

Type unsigned long *:

virConnectGetVersion
@@ -39,12 +43,15 @@ virDomainGetOSType
virDomainGetUUID
virDomainGetUUIDString
+virDomainGetVcpus
virDomainGetXMLDesc
+virDomainPinVcpu
virDomainReboot
virDomainResume
virDomainSave
virDomainSetMaxMemory
virDomainSetMemory
+virDomainSetVcpus
virDomainShutdown
virDomainSuspend
virDomainUndefine
@@ -56,6 +63,7 @@ virErrorFunc
virResetError

Type virNodeInfoPtr:

virNodeGetInfo
+

Type virVcpuInfoPtr:

virDomainGetVcpus

Type void *:

virConnSetErrorFunc
virErrorFunc
virSetErrorFunc
diff --git a/docs/APIsymbols.html b/docs/APIsymbols.html index af3c51cdad..b8642546f5 100644 --- a/docs/APIsymbols.html +++ b/docs/APIsymbols.html @@ -1,7 +1,10 @@ Alphabetic List of Symbols in libvirt

diff --git a/docs/devhelp/libvirt-libvirt.html b/docs/devhelp/libvirt-libvirt.html index 1b65597d7b..b17c5c7c1a 100644 --- a/docs/devhelp/libvirt-libvirt.html +++ b/docs/devhelp/libvirt-libvirt.html @@ -38,7 +38,14 @@

Author(s): Daniel Veillard <veillard@redhat.com>

Synopsis

-
#define LIBVIR_VERSION_NUMBER;
+      
#define VIR_NODEINFO_MAXCPUS(nodeinfo);
+#define LIBVIR_VERSION_NUMBER;
+#define VIR_USE_CPU(cpumap, cpu);
+#define VIR_CPU_MAPLEN;
+#define VIR_CPU_USABLE(cpumaps, maplen, vcpu, cpu);
+#define VIR_COPY_CPUMAP(cpumaps, maplen, vcpu, cpumap);
+#define VIR_GET_CPUMAP(cpumaps, maplen, vcpu);
+#define VIR_UNUSE_CPU(cpumap, cpu);
 typedef virNodeInfo * virNodeInfoPtr;
 typedef virDomainInfo * virDomainInfoPtr;
 typedef virDomainKernel * virDomainKernelPtr;
@@ -49,10 +56,13 @@ typedef enum virDomainState;
 typedef enum virDeviceMode;
 typedef struct _virDomain virDomain;
 typedef virDomain * virDomainPtr;
+typedef struct _virVcpuInfo virVcpuInfo;
+typedef virVcpuInfo * virVcpuInfoPtr;
 typedef enum virDomainRestart;
 typedef struct _virConnect virConnect;
 typedef enum virDomainCreateFlags;
 typedef struct _virDomainInfo virDomainInfo;
+typedef enum virVcpuState;
 int	virDomainGetInfo		(virDomainPtr domain, 
virDomainInfoPtr info); int virDomainUndefine (virDomainPtr domain); virDomainPtr virDomainDefineXML (virConnectPtr conn,
const char * xml); @@ -60,6 +70,7 @@ int virDomainShutdown (virGetVersion (unsigned long * libVer,
const char * type,
unsigned long * typeVer); int virConnectListDefinedDomains (virConnectPtr conn,
const char ** names,
int maxnames); virDomainPtr virDomainLookupByName (virConnectPtr conn,
const char * name); +int virDomainPinVcpu (virDomainPtr domain,
unsigned int vcpu,
unsigned char * cpumap,
int maplen); int virDomainRestore (virConnectPtr conn,
const char * from); const char * virConnectGetType (virConnectPtr conn); int virDomainSave (virDomainPtr domain,
const char * to); @@ -73,7 +84,7 @@ int virNodeGetInfo (virDomainGetUUID (virDomainPtr domain,
unsigned char * uuid); int virConnectNumOfDomains (virConnectPtr conn); int virDomainGetUUIDString (virDomainPtr domain,
char * buf); -unsigned long virDomainGetMaxMemory (virDomainPtr domain); +int virDomainGetVcpus (virDomainPtr domain,
virVcpuInfoPtr info,
int maxinfo,
unsigned char * cpumaps,
int maplen); int virConnectGetVersion (virConnectPtr conn,
unsigned long * hvVer); int virDomainSetMaxMemory (virDomainPtr domain,
unsigned long memory); int virDomainFree (virDomainPtr domain); @@ -82,11 +93,13 @@ int virDomainSuspend (virConnectClose (virConnectPtr conn); int virDomainReboot (virDomainPtr domain,
unsigned int flags); int virInitialize (void); +int virDomainSetVcpus (virDomainPtr domain,
unsigned int nvcpus); unsigned int virDomainGetID (virDomainPtr domain); int virDomainResume (virDomainPtr domain); virDomainPtr virDomainCreateLinux (virConnectPtr conn,
const char * xmlDesc,
unsigned int flags); int virDomainSetMemory (virDomainPtr domain,
unsigned long memory); int virDomainDestroy (virDomainPtr domain); +unsigned long virDomainGetMaxMemory (virDomainPtr domain); char * virDomainGetXMLDesc (virDomainPtr domain,
int flags); const char * virDomainGetName (virDomainPtr domain); virConnectPtr virConnectOpenReadOnly (const char * name); @@ -100,6 +113,34 @@ const char * virDomainGetName (

Macro LIBVIR_VERSION_NUMBER

#define LIBVIR_VERSION_NUMBER;
 

Macro providing the version of the library as version * 1,000,000 + minor * 1000 + micro

+
+
+

Macro VIR_COPY_CPUMAP

#define VIR_COPY_CPUMAP(cpumaps, maplen, vcpu, cpumap);
+

This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_COPY_CPUMAP macro extract the cpumap of the specified vcpu from cpumaps array and copy it into cpumap to be used later by virDomainPinVcpu() API.

cpumaps:pointer to an array of cpumap (in 8-bit bytes) (IN)
maplen:the length (in bytes) of one cpumap
vcpu:the virtual CPU number
cpumap:pointer to a cpumap (in 8-bit bytes) (OUT) This cpumap must be previously allocated by the caller (ie: malloc(maplen))
+
+
+

Macro VIR_CPU_MAPLEN

#define VIR_CPU_MAPLEN;
+

+

+
+

Macro VIR_CPU_USABLE

#define VIR_CPU_USABLE(cpumaps, maplen, vcpu, cpu);
+

This macro is to be used in conjonction with virDomainGetVcpus() API. VIR_CPU_USABLE macro returns a non zero value (true) if the cpu is usable by the vcpu, and 0 otherwise.

cpumaps:pointer to an array of cpumap (in 8-bit bytes) (IN)
maplen:the length (in bytes) of one cpumap
vcpu:the virtual CPU number
cpu:the physical CPU number
+
+
+

Macro VIR_GET_CPUMAP

#define VIR_GET_CPUMAP(cpumaps, maplen, vcpu);
+

This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_GET_CPUMAP macro returns a pointer to the cpumap of the specified vcpu from cpumaps array.

cpumaps:pointer to an array of cpumap (in 8-bit bytes) (IN)
maplen:the length (in bytes) of one cpumap
vcpu:the virtual CPU number
+
+
+

Macro VIR_NODEINFO_MAXCPUS

#define VIR_NODEINFO_MAXCPUS(nodeinfo);
+

This macro is to calculate the total number of CPUs supported but not neccessarily active in the host.

nodeinfo:virNodeInfo instance
+
+
+

Macro VIR_UNUSE_CPU

#define VIR_UNUSE_CPU(cpumap, cpu);
+

This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro reset the bit (CPU not usable) of the related cpu in cpumap.

cpumap:pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT)
cpu:the physical CPU number
+
+
+

Macro VIR_USE_CPU

#define VIR_USE_CPU(cpumap, cpu);
+

This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro set the bit (CPU usable) of the related cpu in cpumap.

cpumap:pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT)
cpu:the physical CPU number

Structure virConnect

struct _virConnect {
@@ -200,6 +241,27 @@ The content of this structure is not made public by the API.
         

Typedef virNodeInfoPtr

virNodeInfo * virNodeInfoPtr;
 

a virNodeInfoPtr is a pointer to a virNodeInfo structure.

+
+
+

Structure virVcpuInfo

struct _virVcpuInfo {
+    unsigned int	number	: virtual CPU number
+    int	state	: value from virVcpuState
+    unsigned long long	cpuTime	: CPU time used, in nanoseconds
+    int	cpu	: real CPU number, or -1 if offline
+} virVcpuInfo;
+

+

+
+

Typedef virVcpuInfoPtr

virVcpuInfo * virVcpuInfoPtr;
+

+

+
+

Enum virVcpuState

enum virVcpuState {
+    VIR_VCPU_OFFLINE = 0 /* the virtual CPU is offline */
+    VIR_VCPU_RUNNING = 1 /* the virtual CPU is running */
+    VIR_VCPU_BLOCKED = 2 /*  the virtual CPU is blocked on resource */
+};
+


virConnectClose ()

int	virConnectClose			(virConnectPtr conn)
@@ -259,7 +321,7 @@ The content of this structure is not made public by the API.
domain:a domain object
Returns:the domain ID number or (unsigned int) -1 in case of error

virDomainGetInfo ()

int	virDomainGetInfo		(virDomainPtr domain, 
virDomainInfoPtr info)
-

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the informations can be extracted.

+

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

domain:a domain object
info:pointer to a virDomainInfo structure allocated by the user
Returns:0 in case of success and -1 in case of failure.

virDomainGetMaxMemory ()

unsigned long	virDomainGetMaxMemory	(virDomainPtr domain)
@@ -281,6 +343,10 @@ The content of this structure is not made public by the API.

virDomainGetUUIDString ()

int	virDomainGetUUIDString		(virDomainPtr domain, 
char * buf)

Get the UUID for a domain as string. For more information about UUID see RFC4122.

domain:a domain object
buf:pointer to a 37 bytes array
Returns:-1 in case of error, 0 in case of success
+
+

virDomainGetVcpus ()

int	virDomainGetVcpus		(virDomainPtr domain, 
virVcpuInfoPtr info,
int maxinfo,
unsigned char * cpumaps,
int maplen)
+

Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.

+
domain:pointer to domain object, or NULL for Domain0
info:pointer to an array of virVcpuInfo structures (OUT)
maxinfo:number of structures in info array
cpumaps:pointer to an bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT) If cpumaps is NULL, then no cupmap information is returned by the API. It's assumed there is <maxinfo> cpumap in cpumaps array. The memory allocated to cpumaps must be (maxinfo * maplen) bytes (ie: calloc(maxinfo, maplen)). One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
maplen:number of bytes in one cpumap, from 1 up to size of CPU map in underlying virtualization system (Xen...).
Returns:the number of info filled in case of success, -1 in case of failure.

virDomainGetXMLDesc ()

char *	virDomainGetXMLDesc		(virDomainPtr domain, 
int flags)

Provide an XML description of the domain. The description may be reused later to relaunch the domain with virDomainCreateLinux().

@@ -301,6 +367,10 @@ The content of this structure is not made public by the API.

virDomainLookupByUUIDString ()

virDomainPtr	virDomainLookupByUUIDString	(virConnectPtr conn, 
const char * uuidstr)

Try to lookup a domain on the given hypervisor based on its UUID.

conn:pointer to the hypervisor connection
uuidstr:the string UUID for the domain
Returns:a new domain object or NULL in case of failure
+
+

virDomainPinVcpu ()

int	virDomainPinVcpu		(virDomainPtr domain, 
unsigned int vcpu,
unsigned char * cpumap,
int maplen)
+

Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor.

+
domain:pointer to domain object, or NULL for Domain0
vcpu:virtual CPU number
cpumap:pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.
maplen:number of bytes in cpumap, from 1 up to size of CPU map in underlying virtualization system (Xen...). If maplen < size, missing bytes are set to zero. If maplen > size, failure code is returned.
Returns:0 in case of success, -1 in case of failure.

virDomainReboot ()

int	virDomainReboot			(virDomainPtr domain, 
unsigned int flags)

Reboot a domain, the domain object is still usable there after but the domain OS is being stopped for a restart. Note that the guest OS may ignore the request.

@@ -325,6 +395,10 @@ The content of this structure is not made public by the API.

virDomainSetMemory ()

int	virDomainSetMemory		(virDomainPtr domain, 
unsigned long memory)

Dynamically change the target amount of physical memory allocated to a domain. If domain is NULL, then this change the amount of memory reserved to Domain0 i.e. the domain where the application runs. This function may requires priviledged access to the hypervisor.

domain:a domain object or NULL
memory:the memory size in kilobytes
Returns:0 in case of success and -1 in case of failure.
+
+

virDomainSetVcpus ()

int	virDomainSetVcpus		(virDomainPtr domain, 
unsigned int nvcpus)
+

Dynamically change the number of virtual CPUs used by the domain. Note that this call may fail if the underlying virtualization hypervisor does not support it or if growing the number is arbitrary limited. This function requires priviledged access to the hypervisor.

+
domain:pointer to domain object, or NULL for Domain0
nvcpus:the new number of virtual CPUs for this domain
Returns:0 in case of success, -1 in case of failure.

virDomainShutdown ()

int	virDomainShutdown		(virDomainPtr domain)

Shutdown a domain, the domain object is still usable there after but the domain OS is being stopped. Note that the guest OS may ignore the request. TODO: should we add an option for reboot, knowing it may not be doable in the general case ?

diff --git a/docs/html/libvirt-libvirt.html b/docs/html/libvirt-libvirt.html index 276bec7a32..b4a806c32a 100644 --- a/docs/html/libvirt-libvirt.html +++ b/docs/html/libvirt-libvirt.html @@ -1,6 +1,6 @@ -Module libvirt from libvirt

Module libvirt from libvirt

Provides the interfaces of the libvirt library to handle Xen domains from a process running in domain 0

Table of Contents

#define LIBVIR_VERSION_NUMBER
Structure virConnect
struct _virConnect +Module libvirt from libvirt

Module libvirt from libvirt

Provides the interfaces of the libvirt library to handle Xen domains from a process running in domain 0

Table of Contents

#define LIBVIR_VERSION_NUMBER
#define VIR_COPY_CPUMAP
#define VIR_CPU_MAPLEN
#define VIR_CPU_USABLE
#define VIR_GET_CPUMAP
#define VIR_NODEINFO_MAXCPUS
#define VIR_UNUSE_CPU
#define VIR_USE_CPU
Structure virConnect
struct _virConnect The content of this structure is not made public by the API.
Typedef virConnect * virConnectPtr
 
Enum virDeviceMode
@@ -16,6 +16,9 @@ The content of this structure is not made public by the API.
 
Enum virDomainState
 
Structure virNodeInfo
struct _virNodeInfo
Typedef virNodeInfo * virNodeInfoPtr
+
Structure virVcpuInfo
struct _virVcpuInfo +
Typedef virVcpuInfo * virVcpuInfoPtr
+
Enum virVcpuState
 
int	virConnectClose			(virConnectPtr conn)
const char *	virConnectGetType	(virConnectPtr conn)
int	virConnectGetVersion		(virConnectPtr conn, 
unsigned long * hvVer)
@@ -36,17 +39,20 @@ The content of this structure is not made public by the API.
char *	virDomainGetOSType		(virDomainPtr domain)
int	virDomainGetUUID		(virDomainPtr domain, 
unsigned char * uuid)
int	virDomainGetUUIDString		(virDomainPtr domain, 
char * buf)
+
int	virDomainGetVcpus		(virDomainPtr domain, 
virVcpuInfoPtr info,
int maxinfo,
unsigned char * cpumaps,
int maplen)
char *	virDomainGetXMLDesc		(virDomainPtr domain, 
int flags)
virDomainPtr	virDomainLookupByID	(virConnectPtr conn, 
int id)
virDomainPtr	virDomainLookupByName	(virConnectPtr conn, 
const char * name)
virDomainPtr	virDomainLookupByUUID	(virConnectPtr conn, 
const unsigned char * uuid)
virDomainPtr	virDomainLookupByUUIDString	(virConnectPtr conn, 
const char * uuidstr)
+
int	virDomainPinVcpu		(virDomainPtr domain, 
unsigned int vcpu,
unsigned char * cpumap,
int maplen)
int	virDomainReboot			(virDomainPtr domain, 
unsigned int flags)
int	virDomainRestore		(virConnectPtr conn, 
const char * from)
int	virDomainResume			(virDomainPtr domain)
int	virDomainSave			(virDomainPtr domain, 
const char * to)
int	virDomainSetMaxMemory		(virDomainPtr domain, 
unsigned long memory)
int	virDomainSetMemory		(virDomainPtr domain, 
unsigned long memory)
+
int	virDomainSetVcpus		(virDomainPtr domain, 
unsigned int nvcpus)
int	virDomainShutdown		(virDomainPtr domain)
int	virDomainSuspend		(virDomainPtr domain)
int	virDomainUndefine		(virDomainPtr domain)
@@ -55,6 +61,13 @@ The content of this structure is not made public by the API.
int	virNodeGetInfo			(virConnectPtr conn, 
virNodeInfoPtr info)

Description

Macro: LIBVIR_VERSION_NUMBER

#define LIBVIR_VERSION_NUMBER

Macro providing the version of the library as version * 1,000,000 + minor * 1000 + micro

+

Macro: VIR_COPY_CPUMAP

#define VIR_COPY_CPUMAP

This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_COPY_CPUMAP macro extract the cpumap of the specified vcpu from cpumaps array and copy it into cpumap to be used later by virDomainPinVcpu() API.

+

Macro: VIR_CPU_MAPLEN

#define VIR_CPU_MAPLEN

+

Macro: VIR_CPU_USABLE

#define VIR_CPU_USABLE

This macro is to be used in conjonction with virDomainGetVcpus() API. VIR_CPU_USABLE macro returns a non zero value (true) if the cpu is usable by the vcpu, and 0 otherwise.

+

Macro: VIR_GET_CPUMAP

#define VIR_GET_CPUMAP

This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_GET_CPUMAP macro returns a pointer to the cpumap of the specified vcpu from cpumaps array.

+

Macro: VIR_NODEINFO_MAXCPUS

#define VIR_NODEINFO_MAXCPUS

This macro is to calculate the total number of CPUs supported but not neccessarily active in the host.

+

Macro: VIR_UNUSE_CPU

#define VIR_UNUSE_CPU

This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro reset the bit (CPU not usable) of the related cpu in cpumap.

+

Macro: VIR_USE_CPU

#define VIR_USE_CPU

This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro set the bit (CPU usable) of the related cpu in cpumap.

Structure virConnect

Structure virConnect
struct _virConnect { The content of this structure is not made public by the API. }
@@ -113,7 +126,17 @@ The content of this structure is not made public by the API. unsigned int threads : number of threads per core }
a virNodeInfoPtr is a pointer to a virNodeInfo structure. -

Function: virConnectClose

int	virConnectClose			(virConnectPtr conn)
+

Structure virVcpuInfo

Structure virVcpuInfo
struct _virVcpuInfo { + unsigned int number : virtual CPU number + int state : value from virVcpuState + unsigned long long cpuTime : CPU time used, in nanoseconds + int cpu : real CPU number, or -1 if offline +}

Enum virVcpuState

Enum virVcpuState {
+    VIR_VCPU_OFFLINE = 0 : the virtual CPU is offline
+    VIR_VCPU_RUNNING = 1 : the virtual CPU is running
+    VIR_VCPU_BLOCKED = 2 : the virtual CPU is blocked on resource
+}
+

Function: virConnectClose

int	virConnectClose			(virConnectPtr conn)

This function closes the connection to the Hypervisor. This should not be called if further interaction with the Hypervisor are needed especially if there is running domain which need further monitoring by the application.

conn:pointer to the hypervisor connection
Returns:0 in case of success or -1 in case of error.

Function: virConnectGetType

const char *	virConnectGetType	(virConnectPtr conn)

Get the name of the Hypervisor software used.

@@ -142,7 +165,7 @@ The content of this structure is not made public by the API.
domain:a domain object
Returns:0 in case of success and -1 in case of failure.

Function: virDomainGetID

unsigned int	virDomainGetID		(virDomainPtr domain)

Get the hypervisor ID number for the domain

domain:a domain object
Returns:the domain ID number or (unsigned int) -1 in case of error

Function: virDomainGetInfo

int	virDomainGetInfo		(virDomainPtr domain, 
virDomainInfoPtr info)
-

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the informations can be extracted.

+

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

domain:a domain object
info:pointer to a virDomainInfo structure allocated by the user
Returns:0 in case of success and -1 in case of failure.

Function: virDomainGetMaxMemory

unsigned long	virDomainGetMaxMemory	(virDomainPtr domain)

Retrieve the maximum amount of physical memory allocated to a domain. If domain is NULL, then this get the amount of memory reserved to Domain0 i.e. the domain where the application runs.

domain:a domain object or NULL
Returns:the memory size in kilobytes or 0 in case of error.

Function: virDomainGetName

const char *	virDomainGetName	(virDomainPtr domain)
@@ -153,7 +176,9 @@ The content of this structure is not made public by the API.

Get the UUID for a domain

domain:a domain object
uuid:pointer to a 16 bytes array
Returns:-1 in case of error, 0 in case of success

Function: virDomainGetUUIDString

int	virDomainGetUUIDString		(virDomainPtr domain, 
char * buf)

Get the UUID for a domain as string. For more information about UUID see RFC4122.

-
domain:a domain object
buf:pointer to a 37 bytes array
Returns:-1 in case of error, 0 in case of success

Function: virDomainGetXMLDesc

char *	virDomainGetXMLDesc		(virDomainPtr domain, 
int flags)
+
domain:a domain object
buf:pointer to a 37 bytes array
Returns:-1 in case of error, 0 in case of success

Function: virDomainGetVcpus

int	virDomainGetVcpus		(virDomainPtr domain, 
virVcpuInfoPtr info,
int maxinfo,
unsigned char * cpumaps,
int maplen)
+

Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.

+
domain:pointer to domain object, or NULL for Domain0
info:pointer to an array of virVcpuInfo structures (OUT)
maxinfo:number of structures in info array
cpumaps:pointer to an bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT) If cpumaps is NULL, then no cupmap information is returned by the API. It's assumed there is <maxinfo> cpumap in cpumaps array. The memory allocated to cpumaps must be (maxinfo * maplen) bytes (ie: calloc(maxinfo, maplen)). One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
maplen:number of bytes in one cpumap, from 1 up to size of CPU map in underlying virtualization system (Xen...).
Returns:the number of info filled in case of success, -1 in case of failure.

Function: virDomainGetXMLDesc

char *	virDomainGetXMLDesc		(virDomainPtr domain, 
int flags)

Provide an XML description of the domain. The description may be reused later to relaunch the domain with virDomainCreateLinux().

domain:a domain object
flags:and OR'ed set of extraction flags, not used yet
Returns:a 0 terminated UTF-8 encoded XML instance, or NULL in case of error. the caller must free() the returned value.

Function: virDomainLookupByID

virDomainPtr	virDomainLookupByID	(virConnectPtr conn, 
int id)

Try to find a domain based on the hypervisor ID number

@@ -163,7 +188,9 @@ The content of this structure is not made public by the API.

Try to lookup a domain on the given hypervisor based on its UUID.

conn:pointer to the hypervisor connection
uuid:the raw UUID for the domain
Returns:a new domain object or NULL in case of failure

Function: virDomainLookupByUUIDString

virDomainPtr	virDomainLookupByUUIDString	(virConnectPtr conn, 
const char * uuidstr)

Try to lookup a domain on the given hypervisor based on its UUID.

-
conn:pointer to the hypervisor connection
uuidstr:the string UUID for the domain
Returns:a new domain object or NULL in case of failure

Function: virDomainReboot

int	virDomainReboot			(virDomainPtr domain, 
unsigned int flags)
+
conn:pointer to the hypervisor connection
uuidstr:the string UUID for the domain
Returns:a new domain object or NULL in case of failure

Function: virDomainPinVcpu

int	virDomainPinVcpu		(virDomainPtr domain, 
unsigned int vcpu,
unsigned char * cpumap,
int maplen)
+

Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor.

+
domain:pointer to domain object, or NULL for Domain0
vcpu:virtual CPU number
cpumap:pointer to a bit map of real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each byte, lowest CPU number is least significant bit.
maplen:number of bytes in cpumap, from 1 up to size of CPU map in underlying virtualization system (Xen...). If maplen < size, missing bytes are set to zero. If maplen > size, failure code is returned.
Returns:0 in case of success, -1 in case of failure.

Function: virDomainReboot

int	virDomainReboot			(virDomainPtr domain, 
unsigned int flags)

Reboot a domain, the domain object is still usable there after but the domain OS is being stopped for a restart. Note that the guest OS may ignore the request.

domain:a domain object
flags:extra flags for the reboot operation, not used yet
Returns:0 in case of success and -1 in case of failure.

Function: virDomainRestore

int	virDomainRestore		(virConnectPtr conn, 
const char * from)

This method will restore a domain saved to disk by virDomainSave().

@@ -175,7 +202,9 @@ The content of this structure is not made public by the API.

Dynamically change the maximum amount of physical memory allocated to a domain. If domain is NULL, then this change the amount of memory reserved to Domain0 i.e. the domain where the application runs. This function requires priviledged access to the hypervisor.

domain:a domain object or NULL
memory:the memory size in kilobytes
Returns:0 in case of success and -1 in case of failure.

Function: virDomainSetMemory

int	virDomainSetMemory		(virDomainPtr domain, 
unsigned long memory)

Dynamically change the target amount of physical memory allocated to a domain. If domain is NULL, then this change the amount of memory reserved to Domain0 i.e. the domain where the application runs. This function may requires priviledged access to the hypervisor.

-
domain:a domain object or NULL
memory:the memory size in kilobytes
Returns:0 in case of success and -1 in case of failure.

Function: virDomainShutdown

int	virDomainShutdown		(virDomainPtr domain)
+
domain:a domain object or NULL
memory:the memory size in kilobytes
Returns:0 in case of success and -1 in case of failure.

Function: virDomainSetVcpus

int	virDomainSetVcpus		(virDomainPtr domain, 
unsigned int nvcpus)
+

Dynamically change the number of virtual CPUs used by the domain. Note that this call may fail if the underlying virtualization hypervisor does not support it or if growing the number is arbitrary limited. This function requires priviledged access to the hypervisor.

+
domain:pointer to domain object, or NULL for Domain0
nvcpus:the new number of virtual CPUs for this domain
Returns:0 in case of success, -1 in case of failure.

Function: virDomainShutdown

int	virDomainShutdown		(virDomainPtr domain)

Shutdown a domain, the domain object is still usable there after but the domain OS is being stopped. Note that the guest OS may ignore the request. TODO: should we add an option for reboot, knowing it may not be doable in the general case ?

domain:a domain object
Returns:0 in case of success and -1 in case of failure.

Function: virDomainSuspend

int	virDomainSuspend		(virDomainPtr domain)

Suspends an active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated. Use virDomainResume() to reactivate the domain. This function may requires priviledged access.

diff --git a/docs/libvirt-api.xml b/docs/libvirt-api.xml index 9226657513..5d43ea3827 100644 --- a/docs/libvirt-api.xml +++ b/docs/libvirt-api.xml @@ -5,15 +5,25 @@ core interfaces for the libvirt library Provides the interfaces of the libvirt library to handle Xen domains from a process running in domain 0 Daniel Veillard <veillard@redhat.com> + + + + + + + + + + @@ -32,13 +42,17 @@ + + + + @@ -46,6 +60,7 @@ + @@ -59,7 +74,7 @@ - + @@ -68,11 +83,13 @@ + + @@ -145,6 +162,42 @@ Macro providing the version of the library as version * 1,000,000 + minor * 1000 + micro + + This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_COPY_CPUMAP macro extract the cpumap of the specified vcpu from cpumaps array and copy it into cpumap to be used later by virDomainPinVcpu() API. + + + + + + + + + This macro is to be used in conjonction with virDomainGetVcpus() API. VIR_CPU_USABLE macro returns a non zero value (true) if the cpu is usable by the vcpu, and 0 otherwise. + + + + + + + This macro is to be used in conjonction with virDomainGetVcpus() and virDomainPinVcpu() APIs. VIR_GET_CPUMAP macro returns a pointer to the cpumap of the specified vcpu from cpumaps array. + + + + + + This macro is to calculate the total number of CPUs supported but not neccessarily active in the host. + + + + This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro reset the bit (CPU not usable) of the related cpu in cpumap. + + + + + This macro is to be used in conjonction with virDomainPinVcpu() API. USE_CPU macro set the bit (CPU usable) of the related cpu in cpumap. + + + @@ -202,6 +255,9 @@ + + + a virConnectPtr is pointer to a virConnect private structure, this is the type used to reference a connection to the Xen Hypervisor in the API. @@ -263,6 +319,14 @@ a virNodeInfoPtr is a pointer to a virNodeInfo structure. + + + + + + + + Copy the content of the last error caught on that connection One will need to free the result with virResetError() @@ -375,7 +439,7 @@ - Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the informations can be extracted. + Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted. @@ -407,6 +471,15 @@ + + Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL. + + + + + + + Provide an XML description of the domain. The description may be reused later to relaunch the domain with virDomainCreateLinux(). @@ -437,6 +510,14 @@ + + Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor. + + + + + + Reboot a domain, the domain object is still usable there after but the domain OS is being stopped for a restart. Note that the guest OS may ignore the request. @@ -472,6 +553,12 @@ + + Dynamically change the number of virtual CPUs used by the domain. Note that this call may fail if the underlying virtualization hypervisor does not support it or if growing the number is arbitrary limited. This function requires priviledged access to the hypervisor. + + + + Shutdown a domain, the domain object is still usable there after but the domain OS is being stopped. Note that the guest OS may ignore the request. TODO: should we add an option for reboot, knowing it may not be doable in the general case ? diff --git a/docs/libvirt-refs.xml b/docs/libvirt-refs.xml index 1ec457890f..e134fedb1c 100644 --- a/docs/libvirt-refs.xml +++ b/docs/libvirt-refs.xml @@ -2,6 +2,9 @@ + + + @@ -59,10 +62,18 @@ + + + + + + + + @@ -94,6 +105,7 @@ + @@ -103,6 +115,7 @@ + @@ -111,6 +124,7 @@ + @@ -130,12 +144,18 @@ + + + + + + @@ -193,12 +213,20 @@ + + + + + + + + @@ -232,6 +260,7 @@ + @@ -241,6 +270,7 @@ + @@ -249,6 +279,7 @@ + @@ -268,6 +299,9 @@ + + + @@ -306,10 +340,14 @@ + + + + @@ -353,12 +391,15 @@ + + + @@ -377,6 +418,9 @@ + + + @@ -386,6 +430,9 @@ + + + @@ -402,9 +449,17 @@ + + + + + + + + @@ -430,6 +485,7 @@ + @@ -439,6 +495,7 @@ + @@ -447,6 +504,7 @@ + @@ -456,6 +514,9 @@ + + + @@ -521,22 +582,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -555,17 +645,26 @@ + + + + + + + + + @@ -623,45 +722,27 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -721,17 +802,26 @@ + + + + + + + + + @@ -742,6 +832,10 @@ + + + + @@ -757,6 +851,17 @@ + + + + + + + + + + + @@ -769,6 +874,8 @@ + + @@ -776,6 +883,7 @@ + @@ -783,9 +891,11 @@ + + @@ -793,6 +903,7 @@ + @@ -814,10 +925,14 @@ + + + + @@ -829,6 +944,9 @@ + + + @@ -846,10 +964,14 @@ + + + + @@ -857,12 +979,17 @@ + + + + + @@ -876,6 +1003,8 @@ + + @@ -898,10 +1027,18 @@ + + + + + + + + @@ -910,17 +1047,29 @@ + + + + + + + + + + + + @@ -936,15 +1085,20 @@ + + + + + @@ -962,8 +1116,10 @@ + + @@ -975,6 +1131,7 @@ + @@ -986,6 +1143,13 @@ + + + + + + + @@ -1000,22 +1164,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - @@ -1039,6 +1229,9 @@ + + + @@ -1057,6 +1250,7 @@ + @@ -1074,6 +1268,9 @@ + + + @@ -1087,6 +1284,9 @@ + + + @@ -1096,21 +1296,27 @@ + + + + + + @@ -1122,6 +1328,9 @@ + + + @@ -1143,11 +1352,14 @@ + + + @@ -1155,6 +1367,7 @@ + @@ -1177,7 +1390,12 @@ + + + + + @@ -1191,9 +1409,11 @@ + + @@ -1206,6 +1426,8 @@ + + @@ -1228,6 +1450,9 @@ + + + @@ -1246,9 +1471,15 @@ + + + + + + @@ -1257,6 +1488,10 @@ + + + + @@ -1267,16 +1502,17 @@ + + + + - - - @@ -1286,7 +1522,11 @@ + + + + @@ -1297,6 +1537,9 @@ + + + @@ -1335,11 +1578,18 @@ + + + + + + + @@ -1368,6 +1618,7 @@ + @@ -1379,6 +1630,9 @@ + + + @@ -1387,19 +1641,44 @@ + + + - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -1410,10 +1689,14 @@ + + + + @@ -1421,6 +1704,7 @@ + @@ -1444,6 +1728,9 @@ + + + @@ -1462,7 +1749,9 @@ + + @@ -1477,6 +1766,10 @@ + + + + @@ -1494,16 +1787,22 @@ + + + + + + @@ -1514,22 +1813,15 @@ + - - - - - - - - - - + + @@ -1542,16 +1834,19 @@ + + + @@ -1559,9 +1854,14 @@ + + + + + @@ -1580,7 +1880,11 @@ + + + + @@ -1619,6 +1923,7 @@ + @@ -1641,6 +1946,9 @@ + + + @@ -1648,9 +1956,11 @@ + + @@ -1691,6 +2001,12 @@ + + + + + + @@ -1699,6 +2015,10 @@ + + + + @@ -1716,9 +2036,11 @@ + + @@ -1727,6 +2049,7 @@ + @@ -1758,10 +2081,14 @@ + + + + @@ -1790,8 +2117,6 @@ - - @@ -1809,10 +2134,12 @@ + + @@ -1825,6 +2152,9 @@ + + + @@ -1833,6 +2163,8 @@ + + @@ -1842,6 +2174,10 @@ + + + + @@ -1877,6 +2213,10 @@ + + + + @@ -1896,6 +2236,9 @@ + + + @@ -1907,12 +2250,15 @@ + + + @@ -1926,6 +2272,12 @@ + + + + + + @@ -1934,8 +2286,12 @@ + + + + @@ -1952,7 +2308,9 @@ + + @@ -1961,11 +2319,13 @@ + + @@ -1978,9 +2338,11 @@ + + @@ -1991,6 +2353,13 @@ + + + + + + + @@ -2004,6 +2373,11 @@ + + + + + @@ -2018,7 +2392,11 @@ + + + + @@ -2028,13 +2406,20 @@ + + + + + + + @@ -2047,6 +2432,8 @@ + + @@ -2054,6 +2441,14 @@ + + + + + + + + @@ -2072,12 +2467,24 @@ + + + + + + + + + + + + @@ -2094,6 +2501,7 @@ + @@ -2103,8 +2511,24 @@ + + + + + + + + + + + + + + + + @@ -2128,6 +2552,7 @@ + @@ -2147,6 +2572,11 @@ + + + + + @@ -2173,15 +2603,18 @@ + + - - - - + + + + +