diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2016-02-10 11:07:03 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2016-02-10 12:01:24 +0000 |
commit | 81daba58803cd11a27c2b4684ee3642302c14351 (patch) | |
tree | a5784483a4d1e7dba504daf44aa80d075ef10f15 /hw/xen | |
parent | 2ac9f6d4b1de075f2ac34eb54b18ddda7a414a2b (diff) | |
download | qemu-81daba58803cd11a27c2b4684ee3642302c14351.zip qemu-81daba58803cd11a27c2b4684ee3642302c14351.tar.gz qemu-81daba58803cd11a27c2b4684ee3642302c14351.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c index ef7843f..60575ad 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; } |