aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_pci.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-07-18 14:52:30 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-07-18 14:52:30 +0100
commitc9a87ccb1f1cdc39609e2a055a68a1f2cadc4ab5 (patch)
tree580da8a8c70120fd0de8267381fc5e43941a8f4e /tools/libxl/libxl_pci.c
parentbd3454b6512fc337ed30a2213202affc3858874d (diff)
downloadxen-c9a87ccb1f1cdc39609e2a055a68a1f2cadc4ab5.tar.gz
xen-c9a87ccb1f1cdc39609e2a055a68a1f2cadc4ab5.tar.bz2
xen-c9a87ccb1f1cdc39609e2a055a68a1f2cadc4ab5.zip
libxl: specify HVM vs PV in create_info using libxl_domain_type enum
Since libxl_init_build_info now needs an error return and a ctx (to log to) switch all libxl_init_*_info to have an int return and a ctx. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r--tools/libxl/libxl_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
index 85ed79d719..7cd5850a31 100644
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -1275,7 +1275,7 @@ int libxl__e820_alloc(libxl_ctx *ctx, uint32_t domid, libxl_domain_config *d_con
struct e820entry map[E820MAX];
libxl_domain_build_info *b_info;
- if (d_config == NULL || d_config->c_info.hvm)
+ if (d_config == NULL || d_config->c_info.type == LIBXL_DOMAIN_TYPE_HVM)
return ERROR_INVAL;
b_info = &d_config->b_info;