diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-23 15:25:57 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-23 15:25:57 +0000 |
commit | 3e446a35ee82c738367e8f90e3bc9166687043a8 (patch) | |
tree | d2ed5fd210a798cb5c54007a08e8bd2b9e9a221f /tools/misc | |
parent | 252cb308e37470915d0f64c730e4e2e829ec2512 (diff) | |
download | xen-3e446a35ee82c738367e8f90e3bc9166687043a8.tar.gz xen-3e446a35ee82c738367e8f90e3bc9166687043a8.tar.bz2 xen-3e446a35ee82c738367e8f90e3bc9166687043a8.zip |
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 <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/xen-hptool.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/misc/xen-hptool.c b/tools/misc/xen-hptool.c index cc4d6739f6..374d88315d 100644 --- a/tools/misc/xen-hptool.c +++ b/tools/misc/xen-hptool.c @@ -98,7 +98,7 @@ static int hp_mem_query_func(int argc, char *argv[]) extern int xs_suspend_evtchn_port(int domid); -static int suspend_guest(xc_interface *xch, int xce, int domid, int *evtchn) +static int suspend_guest(xc_interface *xch, xc_evtchn *xce, int domid, int *evtchn) { int port, rc, suspend_evtchn = -1; @@ -192,10 +192,11 @@ static int hp_mem_offline_func(int argc, char *argv[]) } else if (status & PG_OFFLINE_OWNED) { - int result, xce, suspend_evtchn = -1; - xce = xc_evtchn_open(); + int result, suspend_evtchn = -1; + xc_evtchn *xce; + xce = xc_evtchn_open(NULL, 0); - if (xce < 0) + if (xce == NULL) { fprintf(stderr, "When exchange page, fail" " to open evtchn\n"); |