2019-05-02 00:51:10 +02:00
|
|
|
From: Bruce Rogers <brogers@suse.com>
|
|
|
|
Date: Wed, 16 Jan 2019 16:29:36 -0700
|
|
|
|
Subject: xen: add block resize support for xen disks
|
|
|
|
|
|
|
|
Provide monitor naming of xen disks, and plumb guest driver
|
|
|
|
notification through xenstore of resizing instigated via the
|
|
|
|
monitor.
|
|
|
|
|
|
|
|
[BR: minor edits to pass qemu's checkpatch script]
|
|
|
|
[BR: significant rework needed due to upstream xen disk qdevification]
|
|
|
|
[BR: At this point, monitor_add_blk call is all we need to add!]
|
|
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
|
|
---
|
|
|
|
hw/block/xen-block.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c
|
2021-03-30 22:27:28 +02:00
|
|
|
index f6b66a0428eaa37db4c1bbe7e2c4..4bfd55a854afdc2359f03610724d 100644
|
2019-05-02 00:51:10 +02:00
|
|
|
--- a/hw/block/xen-block.c
|
|
|
|
+++ b/hw/block/xen-block.c
|
2020-08-12 00:53:07 +02:00
|
|
|
@@ -270,6 +270,9 @@ static void xen_block_realize(XenDevice *xendev, Error **errp)
|
2019-05-02 00:51:10 +02:00
|
|
|
|
|
|
|
xen_block_set_size(blockdev);
|
|
|
|
|
|
|
|
+ if (!monitor_add_blk(conf->blk, blockdev->drive->id, errp)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
blockdev->dataplane =
|
2019-09-12 17:54:03 +02:00
|
|
|
xen_block_dataplane_create(xendev, blk, conf->logical_block_size,
|
|
|
|
blockdev->props.iothread);
|