summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2011-07-25 15:00:11 +0800
committerDaniel Veillard <veillard@redhat.com>2011-07-25 15:00:11 +0800
commit4a5e5def1ef4b7c7d3ba3e1d8693c402aea8171f (patch)
tree2b5754c3351a7abf0af80466380cdfe3675c01b7 /libvirt-override-api.xml
parentc9e6fa3607fd92539453f9ce0e85c1f3e6db62a7 (diff)
downloadlibvirt-python-v6-4a5e5def1ef4b7c7d3ba3e1d8693c402aea8171f.tar.gz
libvirt-python-v6-4a5e5def1ef4b7c7d3ba3e1d8693c402aea8171f.tar.xz
libvirt-python-v6-4a5e5def1ef4b7c7d3ba3e1d8693c402aea8171f.zip
python: add Python binding for virDomainPinVcpusFlags API
This patch adds the Python bindings for virDomainPinVcpuFlags API. * python/generator.py: add it to the generator skip list * python/libvirt-override-api.xml: provide override description * python/libvirt-override.c: provide override bindings implementation
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index 0dca045..4d9f54b 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -174,6 +174,14 @@
<arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
<arg name='cpumap' type='unsigned char *' info='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.'/>
</function>
+ <function name='virDomainPinVcpuFlags' file='python'>
+ <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
+ <return type='int' info='0 in case of success, -1 in case of failure.'/>
+ <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
+ <arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
+ <arg name='cpumap' type='unsigned char *' info='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.'/>
+ <arg name='flags' type='int' info='flags to specify'/>
+ </function>
<function name='virDomainSetSchedulerParameters' file='python'>
<info>Change the scheduler parameters</info>
<return type='int' info='-1 in case of error, 0 in case of success.'/>