diff options
author | David Vrabel <david.vrabel@citrix.com> | 2012-03-01 15:16:22 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2012-03-01 15:16:22 +0000 |
commit | b831d3c00f7c6c871cc7efb435e9a6660bd29947 (patch) | |
tree | 744364f33270593cd1bb11b4db0bc4a7844f7176 /tools/libxc/xg_private.c | |
parent | 5edb0601cec5f3194752c3dfc3d4da5111e3ff9e (diff) | |
download | xen-b831d3c00f7c6c871cc7efb435e9a6660bd29947.tar.gz xen-b831d3c00f7c6c871cc7efb435e9a6660bd29947.tar.bz2 xen-b831d3c00f7c6c871cc7efb435e9a6660bd29947.zip |
libxc: pass arguments to xc_hvm_build() in a structure
To allow new parameters to be added to the xc_hvm_build*() family of
functions, pass them in a structure. Make the other variants fill in
the structure and call xc_hvm_build() (except for xc_hvm_build_mem()
which had no users and is removed).
The units of the mem_size and mem_target arguments are in bytes (not
MiB like the old functions).
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xg_private.c')
-rw-r--r-- | tools/libxc/xg_private.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxc/xg_private.c b/tools/libxc/xg_private.c index 4b624a5249..3864bc7c40 100644 --- a/tools/libxc/xg_private.c +++ b/tools/libxc/xg_private.c @@ -192,8 +192,7 @@ unsigned long csum_page(void *page) __attribute__((weak)) int xc_hvm_build(xc_interface *xch, uint32_t domid, - int memsize, - const char *image_name) + const struct xc_hvm_build_args *hvm_args) { errno = ENOSYS; return -1; |