[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [LIBXC] Provide weak stub default implementations of xc_hvm_save() and
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1169567885 0 # Node ID bea505a697223f59eceb789ccbff7fd09bc14a7b # Parent 373b09ddc90576909400b48457839d487ca1a49e [LIBXC] Provide weak stub default implementations of xc_hvm_save() and xc_hvm_restore() for architectures with no full implementation. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- tools/libxc/xg_private.c | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) diff -r 373b09ddc905 -r bea505a69722 tools/libxc/xg_private.c --- a/tools/libxc/xg_private.c Tue Jan 23 15:54:12 2007 +0000 +++ b/tools/libxc/xg_private.c Tue Jan 23 15:58:05 2007 +0000 @@ -188,11 +188,32 @@ unsigned long csum_page(void *page) return sum ^ (sum>>32); } -__attribute__((weak)) int xc_hvm_build( - int xc_handle, - uint32_t domid, - int memsize, - const char *image_name) -{ - return -ENOSYS; -} +__attribute__((weak)) +int xc_hvm_build(int xc_handle, + uint32_t domid, + int memsize, + const char *image_name) +{ + errno = ENOSYS; + return -1; +} + +__attribute__((weak)) +int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters, + uint32_t max_factor, uint32_t flags, + int (*suspend)(int domid)) +{ + errno = ENOSYS; + return -1; +} + +__attribute__((weak)) +int xc_hvm_restore(int xc_handle, int io_fd, uint32_t dom, + unsigned long nr_pfns, unsigned int store_evtchn, + unsigned long *store_mfn, unsigned int console_evtchn, + unsigned long *console_mfn, + unsigned int pae, unsigned int apic) +{ + errno = ENOSYS; + return -1; +} _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |