qemu-patch-raspberry4/include/hw/xen
Paul Durrant a3d669c8bd xen: add event channel interface for XenDevice-s
The legacy PV backend infrastructure provides functions to bind, unbind
and send notifications to event channnels. Similar functionality will be
required by XenDevice implementations so this patch adds the necessary
support.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony Perard <anthony.perard@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Patch squashed with:

Patch "xen: add event channel interface for XenDevice-s" makes use of
the type xenevtchn_port_or_error_t, but this isn't avaiable before Xen
4.7. Also the function xen_device_bind_event_channel assign the return
value of xenevtchn_bind_interdomain to channel->local_port but check the
result for error with xendev->local_port.

Fix by:
- removing local_port from struct XenDevice as it isn't use anywere.
- adding a compatibility typedef for xenevtchn_port_or_error_t for Xen
  4.6 and earlier.

As extra, replace the type of XenEventChannel->local_port by
evtchn_port_t.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
2019-01-14 13:45:40 +00:00
..
io avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
xen-block.h xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom' 2019-01-14 13:45:40 +00:00
xen-bus-helper.h xen: add xenstore watcher infrastructure 2019-01-14 13:45:40 +00:00
xen-bus.h xen: add event channel interface for XenDevice-s 2019-01-14 13:45:40 +00:00
xen-legacy-backend.h xen: re-name XenDevice to XenLegacyDevice... 2019-01-14 13:45:40 +00:00
xen.h xen: use libxendevice model to restrict operations 2017-04-21 12:40:14 -07:00
xen_common.h xen: add event channel interface for XenDevice-s 2019-01-14 13:45:40 +00:00
xen_pvdev.h xen: re-name XenDevice to XenLegacyDevice... 2019-01-14 13:45:40 +00:00