aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_bootloader.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-03-01 12:26:13 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-03-01 12:26:13 +0000
commit7e449837dcef5be4f489833fe9cb7e36026d75b7 (patch)
tree548835af45e242aa8ce835402d3b326f6d524afd /tools/libxl/libxl_bootloader.c
parentc8d71a6de2fd0ad5bd875610d82c884fe40fdc0d (diff)
downloadxen-7e449837dcef5be4f489833fe9cb7e36026d75b7.tar.gz
xen-7e449837dcef5be4f489833fe9cb7e36026d75b7.tar.bz2
xen-7e449837dcef5be4f489833fe9cb7e36026d75b7.zip
libxl: provide _init and _setdefault for libxl_domain_build_info.
Some fields require further scaffolding before they can use the _init/_setdefault scheme and are handled in later patches. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_bootloader.c')
-rw-r--r--tools/libxl/libxl_bootloader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c
index 907c871f65..4afe1fb6ec 100644
--- a/tools/libxl/libxl_bootloader.c
+++ b/tools/libxl/libxl_bootloader.c
@@ -346,6 +346,9 @@ int libxl_run_bootloader(libxl_ctx *ctx,
struct stat st_buf;
+ rc = libxl__domain_build_info_setdefault(gc, info);
+ if (rc) goto out;
+
if (info->type != LIBXL_DOMAIN_TYPE_PV || !info->u.pv.bootloader)
goto out;