diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-09-08 11:13:03 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-09-08 11:13:03 +0100 |
commit | 112dcc7dd02c598057c6039e9756fbbf5fd6c1d3 (patch) | |
tree | 1dc44994db70b37bf149606203c6d091f16d67aa /tools/xcutils | |
parent | a2567b2631fa9659ebb95b7ae6d08f09f96b65ec (diff) | |
download | xen-112dcc7dd02c598057c6039e9756fbbf5fd6c1d3.tar.gz xen-112dcc7dd02c598057c6039e9756fbbf5fd6c1d3.tar.bz2 xen-112dcc7dd02c598057c6039e9756fbbf5fd6c1d3.zip |
xc_save: Clean up (*suspend)() callback hook.
Sigend-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/xcutils')
-rw-r--r-- | tools/xcutils/xc_save.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c index d965e0220f..3dfc03117a 100644 --- a/tools/xcutils/xc_save.c +++ b/tools/xcutils/xc_save.c @@ -32,7 +32,7 @@ static struct suspendinfo { * Issue a suspend request through stdout, and receive the acknowledgement * from stdin. This is handled by XendCheckpoint in the Python layer. */ -static int compat_suspend(int domid) +static int compat_suspend(void) { char ans[30]; @@ -43,7 +43,7 @@ static int compat_suspend(int domid) !strncmp(ans, "done\n", 5)); } -static int suspend_evtchn_release(int xc, int domid) +static int suspend_evtchn_release(void) { if (si.suspend_evtchn >= 0) { xc_evtchn_unbind(si.xce, si.suspend_evtchn); @@ -107,7 +107,7 @@ static int suspend_evtchn_init(int xc, int domid) return 0; cleanup: - suspend_evtchn_release(xc, domid); + suspend_evtchn_release(); return -1; } @@ -115,7 +115,7 @@ static int suspend_evtchn_init(int xc, int domid) /** * Issue a suspend request to a dedicated event channel in the guest, and * receive the acknowledgement from the subscribe event channel. */ -static int evtchn_suspend(int domid) +static int evtchn_suspend(void) { int rc; @@ -144,12 +144,12 @@ static int evtchn_suspend(int domid) return 1; } -static int suspend(int domid) +static int suspend(void) { if (si.suspend_evtchn >= 0) - return evtchn_suspend(domid); + return evtchn_suspend(); - return compat_suspend(domid); + return compat_suspend(); } /* For HVM guests, there are two sources of dirty pages: the Xen shadow @@ -214,7 +214,7 @@ static void qemu_flip_buffer(int domid, int next_active) goto read_again; } -static void * init_qemu_maps(int domid, unsigned int bitmap_size) +static void *init_qemu_maps(int domid, unsigned int bitmap_size) { key_t key; char key_ascii[17] = {0,}; @@ -304,7 +304,7 @@ main(int argc, char **argv) &suspend, !!(flags & XCFLAGS_HVM), &init_qemu_maps, &qemu_flip_buffer); - suspend_evtchn_release(xc_fd, domid); + suspend_evtchn_release(); xc_interface_close(xc_fd); |