summaryrefslogtreecommitdiff
path: root/xen-common.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2016-02-10 11:07:03 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2016-02-10 12:01:24 +0000
commit81daba58803cd11a27c2b4684ee3642302c14351 (patch)
treea5784483a4d1e7dba504daf44aa80d075ef10f15 /xen-common.c
parent2ac9f6d4b1de075f2ac34eb54b18ddda7a414a2b (diff)
downloadqemu-81daba58803cd11a27c2b4684ee3642302c14351.tar.gz
xen: drop XenXC and associated interface wrappers
Now that 4.2 and earlier are no longer supported "xc_interface *" is always the right type for the xc interface handle. With this we can also simplify the handling of the xenforeignmemory compatibility wrapper by making xenforeignmemory_handle == xc_interface, instead of an xc_interface* and remove various uses of & and *h. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen-common.c')
-rw-r--r--xen-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen-common.c b/xen-common.c
index 4860b2eb76..e641ad1aef 100644
--- a/xen-common.c
+++ b/xen-common.c
@@ -114,8 +114,8 @@ static void xen_change_state_handler(void *opaque, int running,
static int xen_init(MachineState *ms)
{
- xen_xc = xen_xc_interface_open(0, 0, 0);
- if (xen_xc == XC_HANDLER_INITIAL_VALUE) {
+ xen_xc = xc_interface_open(0, 0, 0);
+ if (xen_xc == NULL) {
xen_be_printf(NULL, 0, "can't open xen interface\n");
return -1;
}