qemu-patch-raspberry4/include/hw/xen
Paul Durrant 82a29e3048 xen: add xenstore watcher infrastructure
A Xen PV frontend communicates its state to the PV backend by writing to
the 'state' key in the frontend area in xenstore. It is therefore
necessary for a XenDevice implementation to be notified whenever the
value of this key changes.

This patch adds code to do this as follows:

- an 'fd handler' is registered on the libxenstore handle which will be
  triggered whenever a 'watch' event occurs
- primitives are added to xen-bus-helper to add or remove watch events
- a list of Notifier objects is added to XenBus to provide a mechanism
  to call the appropriate 'watch handler' when its associated event
  occurs

The xen-block implementation is extended with a 'frontend_changed' method,
which calls as-yet stub 'connect' and 'disconnect' functions when the
relevant frontend state transitions occur. A subsequent patch will supply
a full implementation for these functions.

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>
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 xenstore watcher infrastructure 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-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages 2018-05-31 12:04:55 -07:00
xen_pvdev.h xen: re-name XenDevice to XenLegacyDevice... 2019-01-14 13:45:40 +00:00