qemu/include/hw/xen
David Woodhouse f80fad16af hw/xen: Pass grant ref to gnttab unmap operation
The previous commit introduced redirectable gnttab operations fairly
much like-for-like, with the exception of the extra arguments to the
->open() call which were always NULL/0 anyway.

This *changes* the arguments to the ->unmap() operation to include the
original ref# that was mapped. Under real Xen it isn't necessary; all we
need to do from QEMU is munmap(), then the kernel will release the grant,
and Xen does the tracking/refcounting for the guest.

When we have emulated grant tables though, we need to do all that for
ourselves. So let's have the back ends keep track of what they mapped
and pass it in to the ->unmap() method for us.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
2023-03-07 17:04:30 +00:00
..
interface include: import Xen public headers to hw/xen/interface 2023-03-01 08:22:49 +00:00
start_info.h Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
xen-backend.h xen-bus: reduce scope of backend watch 2020-10-19 16:32:41 +01:00
xen-block.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
xen-bus-helper.h hw/xen: use G_GNUC_PRINTF/SCANF for various functions 2023-01-11 10:44:33 +01:00
xen-bus.h hw/xen: Pass grant ref to gnttab unmap operation 2023-03-07 17:04:30 +00:00
xen-legacy-backend.h hw/xen: Pass grant ref to gnttab unmap operation 2023-03-07 17:04:30 +00:00
xen-x86.h hw/xen: Split x86-specific declaration from generic hardware ones 2020-09-30 19:11:36 +02:00
xen.h xen: Add XEN_DISABLED mode and make it default 2023-03-01 08:22:49 +00:00
xen_backend_ops.h hw/xen: Pass grant ref to gnttab unmap operation 2023-03-07 17:04:30 +00:00
xen_common.h hw/xen: Add gnttab operations to allow redirection to internal emulation 2023-03-07 17:04:30 +00:00
xen_pvdev.h hw/xen: Add evtchn operations to allow redirection to internal emulation 2023-03-07 17:04:30 +00:00