qemu-patch-raspberry4/include/hw/xen
Paul Durrant 094a22399f xen: create xenstore areas for XenDevice-s
This patch adds a new source module, xen-bus-helper.c, which builds on
basic libxenstore primitives to provide functions to create (setting
permissions appropriately) and destroy xenstore areas, and functions to
'printf' and 'scanf' nodes therein. The main xen-bus code then uses
these primitives [1] to initialize and destroy the frontend and backend
areas for a XenDevice during realize and unrealize respectively.

The 'xen-block' implementation is extended with a 'get_name' method that
returns the VBD number. This number is required to 'name' the xenstore
areas.

NOTE: An exit handler is also added to make sure the xenstore areas are
      cleaned up if QEMU terminates without devices being unrealized.

[1] The 'scanf' functions are actually not yet needed, but they will be
    needed by code delivered in subsequent patches.

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: create xenstore areas for XenDevice-s 2019-01-14 13:45:40 +00:00
xen-bus.h xen: create xenstore areas 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-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