[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RESEND v7 5/9] libxl: vnuma types declararion
Adds vnuma topology types declarations to libxl_domain_build_info structure. Signed-off-by: Elena Ufimtseva <ufimtseva@xxxxxxxxx> --- tools/libxl/libxl_types.idl | 7 ++++++- tools/libxl/libxl_vnuma.h | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tools/libxl/libxl_vnuma.h diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 0b3496f..67469b0 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -333,7 +333,12 @@ libxl_domain_build_info = Struct("domain_build_info",[ ("disable_migrate", libxl_defbool), ("cpuid", libxl_cpuid_policy_list), ("blkdev_start", string), - + ("vnodes", uint32), + ("vnuma_mem", Array(uint64, "num_vnuma_mem")), + ("vnuma_vcpumap", Array(uint32, "num_vnuma_vcpumap")), + ("vdistance", Array(uint32, "num_vdistance")), + ("vnuma_vnodemap", Array(uint32, "num_vnuma_vnondemap")), + ("vnuma_autoplacement", libxl_defbool), ("device_model_version", libxl_device_model_version), ("device_model_stubdomain", libxl_defbool), # if you set device_model you must set device_model_version too diff --git a/tools/libxl/libxl_vnuma.h b/tools/libxl/libxl_vnuma.h new file mode 100644 index 0000000..7a5f558 --- /dev/null +++ b/tools/libxl/libxl_vnuma.h @@ -0,0 +1,13 @@ +#ifndef LIBXL_VNUMA_H +#define LIBXL_VNUMA_H + +#include "libxl_osdeps.h" /* must come before any other headers */ + +#define VNUMA_NO_NODE ~((unsigned int)0) + +/* Min vNUMA node size from Linux. */ +#define MIN_VNODE_SIZE 32U + +#define MAX_VNUMA_NODES (unsigned int)1 << 10 + +#endif -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |