xemu/include/hw/xen
Juergen Gross b5e397a79e xen: add a global indicator for grant copy being available
The Xen qdisk backend needs to test whether grant copy operations is
available in the kernel. Unfortunately this collides with using
xengnttab_set_max_grants() on some kernels as this operation has to
be the first one after opening the gnttab device.

In order to solve this problem test for the availability of grant copy
in xen_be_init() opening the gnttab device just for that purpose and
closing it again afterwards. Advertise the availability via a global
flag and use that flag in the qdisk backend.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
2017-10-26 14:23:06 -07:00
..
io xen: import ring.h from xen 2017-04-21 12:41:29 -07:00
xen_backend.h xen: add a global indicator for grant copy being available 2017-10-26 14:23:06 -07:00
xen_common.h xen: don't use xenstore to save/restore physmap anymore 2017-07-18 14:16:52 -07:00
xen_pvdev.h xen: create qdev for each backend device 2016-11-22 10:29:39 -08:00
xen.h xen: use libxendevice model to restrict operations 2017-04-21 12:40:14 -07:00