3a333345a6
Update to v4.2.0-rc3. Intent is to submit to Factory, and SLE-15-SP2 as well OBS-URL: https://build.opensuse.org/request/show/751303 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=513
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
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
|
|
index 0007ee64c75f38a2a3256f0b9462..86de57f9c6f7405bc26303065d2c 100644
|
|
--- a/hw/block/xen-block.c
|
|
+++ b/hw/block/xen-block.c
|
|
@@ -274,6 +274,9 @@ static void xen_block_realize(XenDevice *xendev, Error **errp)
|
|
|
|
xen_block_set_size(blockdev);
|
|
|
|
+ if (!monitor_add_blk(conf->blk, blockdev->drive->id, errp)) {
|
|
+ return;
|
|
+ }
|
|
blockdev->dataplane =
|
|
xen_block_dataplane_create(xendev, blk, conf->logical_block_size,
|
|
blockdev->props.iothread);
|