From: Ian Campbell Date: Wed, 15 Jul 2015 11:43:00 +0000 (+0100) Subject: tools: libxc: Add nomigrate stubs for xc_domain_(save|restore)2. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2779 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f50fe3a56935f26b80d3dcecae203d357a295cfd;p=xen.git tools: libxc: Add nomigrate stubs for xc_domain_(save|restore)2. Fixes the build on ARM after the switch to migration v2 in 210b4817529d "tools/libxc+libxl+xl: Save v2 streams" and 3a9ace0147d4 "tools/libxc+libxl+xl: Restore v2 streams". Signed-off-by: Ian Campbell Cc: Andrew Cooper Reviewed-by: Andrew Cooper Acked-by: Wei Liu --- diff --git a/tools/libxc/xc_nomigrate.c b/tools/libxc/xc_nomigrate.c index 76978a0361..426aee6efc 100644 --- a/tools/libxc/xc_nomigrate.c +++ b/tools/libxc/xc_nomigrate.c @@ -29,6 +29,14 @@ int xc_domain_save(xc_interface *xch, int io_fd, uint32_t dom, uint32_t max_iter return -1; } +int xc_domain_save2(xc_interface *xch, int io_fd, uint32_t dom, uint32_t max_iters, + uint32_t max_factor, uint32_t flags, + struct save_callbacks* callbacks, int hvm) +{ + errno = ENOSYS; + return -1; +} + int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, unsigned int store_evtchn, unsigned long *store_mfn, domid_t store_domid, unsigned int console_evtchn, @@ -41,6 +49,18 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom, return -1; } +int xc_domain_restore2(xc_interface *xch, int io_fd, uint32_t dom, + unsigned int store_evtchn, unsigned long *store_mfn, + domid_t store_domid, unsigned int console_evtchn, + unsigned long *console_mfn, domid_t console_domid, + unsigned int hvm, unsigned int pae, int superpages, + int checkpointed_stream, + struct restore_callbacks *callbacks) +{ + errno = ENOSYS; + return -1; +} + /* * Local variables: * mode: C