From 3e446a35ee82c738367e8f90e3bc9166687043a8 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 23 Dec 2010 15:25:57 +0000 Subject: libxc: convert evtchn interfaces to use an opaque handle type This makes the interface consistent with the changes made to the main interface in 21483:779c0ef9682c. Also fix some references to "struct xc_interface" which should have been simply "xc_interface" in tools/xenpaging, and update QEMU_TAG to pull in the corresponding qemu change. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/xcutils/xc_save.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tools/xcutils') diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c index 59380c4dbb..debb1bb89e 100644 --- a/tools/xcutils/xc_save.c +++ b/tools/xcutils/xc_save.c @@ -25,7 +25,7 @@ static struct suspendinfo { xc_interface *xch; - int xce; /* event channel handle */ + xc_evtchn *xce; /* event channel handle */ int suspend_evtchn; int domid; unsigned int flags; @@ -183,13 +183,12 @@ main(int argc, char **argv) max_f = atoi(argv[4]); si.flags = atoi(argv[5]); - si.suspend_evtchn = si.xce = -1; + si.suspend_evtchn = -1; - si.xce = xc_evtchn_open(); - if (si.xce < 0) + si.xce = xc_evtchn_open(NULL, 0); + if (si.xce == NULL) warnx("failed to open event channel handle"); - - if (si.xce > 0) + else { port = xs_suspend_evtchn_port(si.domid); -- cgit v1.2.3