diff options
authorViktor Mihajlovski <>2012-10-23 14:34:53 -0600
committerEric Blake <>2012-10-23 18:46:47 -0600
commit2594a007509ef20e94636089e26237af7e862609 (patch)
parent4248becb86df45d87e6a641d19cbe29a8ef94cf5 (diff)
virNodeGetCPUMap: Define public API.v1.0.0-rc1
Adding a new API to obtain information about the host node's present, online and offline CPUs. int virNodeGetCPUMap(virConnectPtr conn, unsigned char **cpumap, unsigned int *online, unsigned int flags); The function will return the number of CPUs present on the host or -1 on failure; If cpumap is non-NULL virNodeGetCPUMap will allocate an array containing a bit map representation of the online CPUs. It's the callers responsibility to deallocate cpumap using free(). If online is non-NULL, the variable pointed to will contain the number of online host node CPUs. The variable flags has been added to support future extensions and must be set to 0. Extend the driver structure by nodeGetCPUMap entry in support of the new API virNodeGetCPUMap. Added implementation of virNodeGetCPUMap to libvirt.c Signed-off-by: Viktor Mihajlovski <> Signed-off-by: Eric Blake <>
1 files changed, 1 insertions, 0 deletions
diff --git a/ b/
index ced7e41..c76ff2a 100755
--- a/
+++ b/
@@ -429,6 +429,7 @@ skip_impl = (
+ 'virNodeGetCPUMap',
qemu_skip_impl = (