summaryrefslogtreecommitdiff
path: root/hw/xen
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 /hw/xen
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 'hw/xen')
-rw-r--r--hw/xen/xen_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c
index ef7843fe82..60575ad38d 100644
--- a/hw/xen/xen_backend.c
+++ b/hw/xen/xen_backend.c
@@ -36,7 +36,7 @@
/* ------------------------------------------------------------- */
/* public */
-XenXC xen_xc = XC_HANDLER_INITIAL_VALUE;
+xc_interface *xen_xc = NULL;
xenforeignmemory_handle *xen_fmem = NULL;
struct xs_handle *xenstore = NULL;
const char *xen_protocol;
@@ -710,7 +710,7 @@ int xen_be_init(void)
qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL);
- if (xen_xc == XC_HANDLER_INITIAL_VALUE || xen_fmem == NULL) {
+ if (xen_xc == NULL || xen_fmem == NULL) {
/* Check if xen_init() have been called */
goto err;
}