diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-26 09:59:33 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-26 09:59:33 +0000 |
commit | 41881805d14ab2f2852c0f9410eb3c210681e905 (patch) | |
tree | 8633ae75389eaee6f1ea5643288a5b59fa84111b /tools/libxc/xc_dom_compat_linux.c | |
parent | 2695cd025a680d3bb86d10ae2732d8701b6b0eb4 (diff) | |
download | xen-41881805d14ab2f2852c0f9410eb3c210681e905.tar.gz xen-41881805d14ab2f2852c0f9410eb3c210681e905.tar.bz2 xen-41881805d14ab2f2852c0f9410eb3c210681e905.zip |
Write Xen ELF notes into xenstore on domain build.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Diffstat (limited to 'tools/libxc/xc_dom_compat_linux.c')
-rw-r--r-- | tools/libxc/xc_dom_compat_linux.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/libxc/xc_dom_compat_linux.c b/tools/libxc/xc_dom_compat_linux.c index d19a57d6b9..89265a6b37 100644 --- a/tools/libxc/xc_dom_compat_linux.c +++ b/tools/libxc/xc_dom_compat_linux.c @@ -122,6 +122,31 @@ int xc_linux_build(int xc_handle, uint32_t domid, return rc; } +int xc_dom_linux_build(int xc_handle, + struct xc_dom_image *dom, + uint32_t domid, + unsigned int mem_mb, + const char *image_name, + const char *initrd_name, + unsigned long flags, + unsigned int store_evtchn, + unsigned long *store_mfn, + unsigned int console_evtchn, unsigned long *console_mfn) +{ + int rc; + + if ( (rc = xc_dom_kernel_file(dom, image_name)) != 0 ) + return rc; + if ( initrd_name && strlen(initrd_name) && + ((rc = xc_dom_ramdisk_file(dom, initrd_name)) != 0) ) + return rc; + + return xc_linux_build_internal(dom, xc_handle, domid, + mem_mb, flags, + store_evtchn, store_mfn, + console_evtchn, console_mfn); +} + /* * Local variables: * mode: C |