]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
xen: add implementations of xen-block connect and disconnect functions...
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 6 Dec 2018 09:36:38 +0000 (09:36 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 11 Dec 2018 09:56:16 +0000 (09:56 +0000)
commit9f86c3c8dd29b1b4eed434127ee6ff3dacb6dedc
treea630be4f5a9b20abae92bcf6f433ce64eb4cdebb
parent383c6270f73ddb5d0dd92279c22522a63c48e890
xen: add implementations of xen-block connect and disconnect functions...

...and wire in the dataplane.

This patch adds the remaining code to make the xen-block XenDevice
functional. The parameters that a block frontend expects to find are
populated in the backend xenstore area, and the 'ring-ref' and
'event-channel' values specified in the frontend xenstore area are
mapped/bound and used to set up the dataplane.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
v3:
 - Add missing return statement to xen_block_realize()
 - Set device name to 'vbd' now the backend is functional
 - Add an unplug handler
 - Move backend watch code from subsequent patch since it's now needed
   to handle unplug

v2:
 - Tidy up header inclusions
 - Stop leaking ring_ref on error
 - Auto-create drive for CDRom devices
hw/block/xen-block.c
hw/xen/trace-events
hw/xen/xen-bus.c
include/hw/xen/xen-block.h
include/hw/xen/xen-bus.h