xen-block: handle resize callback
commit3149f183d7ca448b1dc30fe3d4acb9e367de01bf
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 31 Jan 2019 15:33:16 +0000 (31 15:33 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 4 Feb 2019 11:04:49 +0000 (4 11:04 +0000)
treec4e73f03d718d1f3fdaa97a67fa1f7aa7f201019
parent67bc8e00f7c44b7ac35ee75e1716ad18baa77126
xen-block: handle resize callback

Some frontend drivers will handle dynamic resizing of PV disks, so set up
the BlockDevOps resize_cb() method during xen_block_realize() to allow
this to be done.

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>
hw/block/dataplane/xen-block.c
hw/block/trace-events
hw/block/xen-block.c