qemu/hw/xen
Ian Campbell c1345a8878 xen: Switch to libxengnttab interface for compat shims.
In Xen 4.7 we are refactoring parts libxenctrl into a number of
separate libraries which will provide backward and forward API and ABI
compatiblity.

One such library will be libxengnttab which provides access to grant
tables.

In preparation for this switch the compatibility layer in xen_common.h
(which support building with older versions of Xen) to use what will
be the new library API. This means that the gnttab shim will disappear
for versions of Xen which include libxengnttab.

To simplify things for the <= 4.0.0 support we wrap the int fd in a
malloc(sizeof int) such that the handle is always a pointer. This
leads to less typedef headaches and the need for
XC_HANDLER_INITIAL_VALUE etc for these interfaces.

Note that this patch does not add any support for actually using
libxengnttab, it just adjusts the existing shims.

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>
2016-01-26 17:19:28 +00:00
..
Makefile.objs xen/Makefile.objs: simplify 2016-01-11 11:39:28 +03:00
xen_backend.c xen: Switch to libxengnttab interface for compat shims. 2016-01-26 17:19:28 +00:00
xen_devconfig.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
xen_pt_config_init.c Add Error **errp for xen_pt_config_init() 2016-01-21 16:45:47 +00:00
xen_pt_graphics.c Add Error **errp for xen_pt_setup_vga() 2016-01-21 16:45:41 +00:00
xen_pt_msi.c xen/MSI-X: really enforce alignment 2015-12-09 15:46:57 +00:00
xen_pt.c Xen PCI passthru: convert to realize() 2016-01-21 16:45:54 +00:00
xen_pt.h Add Error **errp for xen_pt_config_init() 2016-01-21 16:45:47 +00:00
xen-host-pci-device.c Add Error **errp for xen_host_pci_device_get() 2016-01-21 16:45:34 +00:00
xen-host-pci-device.h Add Error **errp for xen_host_pci_device_get() 2016-01-21 16:45:34 +00:00