libxc: pass arguments to xc_hvm_build() in a structure
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 1 Mar 2012 15:16:22 +0000 (15:16 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 1 Mar 2012 15:16:22 +0000 (15:16 +0000)
commitb831d3c00f7c6c871cc7efb435e9a6660bd29947
tree744364f33270593cd1bb11b4db0bc4a7844f7176
parent5edb0601cec5f3194752c3dfc3d4da5111e3ff9e
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>
tools/libxc/ia64/xc_ia64_hvm_build.c
tools/libxc/xc_hvm_build.c
tools/libxc/xenguest.h
tools/libxc/xg_private.c