diff options
author | Anthony Perard <anthony.perard@citrix.com> | 2010-08-09 16:46:01 +0100 |
---|---|---|
committer | Anthony Perard <anthony.perard@citrix.com> | 2010-08-09 16:46:01 +0100 |
commit | 2d50ecfbf6aca65552d6864c80c00116f81230af (patch) | |
tree | b4a270ab235bfdfa1f03b8c3e281d85163be86f5 /tools/libxl/libxl_utils.h | |
parent | adf97edda203ed6e48134029c0acc00164bb5934 (diff) | |
download | xen-2d50ecfbf6aca65552d6864c80c00116f81230af.tar.gz xen-2d50ecfbf6aca65552d6864c80c00116f81230af.tar.bz2 xen-2d50ecfbf6aca65552d6864c80c00116f81230af.zip |
libxl, Introduce the command line handler for the new qemu.
From: Anthony PERARD <anthony.perard@citrix.com>
This patch adds a function to check the version of the device model.
Depending on the version of the DM, the command line arguments will be
built differently.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
tools/libxl/libxl.c | 160 ++++++++++++++++++++++++++++++++++++++++++++-
tools/libxl/libxl_utils.c | 78 ++++++++++++++++++++++
tools/libxl/libxl_utils.h | 6 ++
3 files changed, 243 insertions(+), 1 deletions(-)
Diffstat (limited to 'tools/libxl/libxl_utils.h')
-rw-r--r-- | tools/libxl/libxl_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/libxl/libxl_utils.h b/tools/libxl/libxl_utils.h index 98a912cad4..5de2137102 100644 --- a/tools/libxl/libxl_utils.h +++ b/tools/libxl/libxl_utils.h @@ -68,5 +68,11 @@ int libxl_strtomac(const char *mac_s, uint8_t *mac); int libxl_devid_to_device_net2(libxl_ctx *ctx, uint32_t domid, const char *devid, libxl_device_net2 *net2); +/* check the version of qemu + * return 1 if is the new one + * return 0 if is the old one + * return -1 if there are an error */ +int libxl_check_device_model_version(libxl_ctx *ctx, char *path); + #endif |