summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPaul Durrant2019-01-08 15:48:49 +0100
committerAnthony PERARD2019-01-14 14:45:40 +0100
commit094a22399f1b3e796727fc7e584c7a1f2beca24b (patch)
tree0847863e115f47588149d2cba3f049d0f1ede2e9 /linux-user
parentxen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom' (diff)
downloadqemu-094a22399f1b3e796727fc7e584c7a1f2beca24b.tar.gz
qemu-094a22399f1b3e796727fc7e584c7a1f2beca24b.tar.xz
qemu-094a22399f1b3e796727fc7e584c7a1f2beca24b.zip
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>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions