a8263c0693
- Include upstream patches designated as stable material and reviewed for applicability to include here block-Separate-blk_is_writable-and-blk_s.patch hw-intc-arm_gic-Fix-interrupt-ID-in-GICD.patch hw-net-lan9118-Fix-RX-Status-FIFO-PEEK-v.patch hw-timer-slavio_timer-Allow-64-bit-acces.patch net-Fix-handling-of-id-in-netdev_add-and.patch target-arm-Don-t-decode-insns-in-the-XSc.patch target-arm-Fix-MTE0_ACTIVE.patch target-arm-Introduce-PREDDESC-field-defi.patch target-arm-Update-PFIRST-PNEXT-for-pred_.patch target-arm-Update-REV-PUNPK-for-pred_des.patch target-arm-Update-ZIP-UZP-TRN-for-pred_d.patch tcg-Use-memset-for-large-vector-byte-rep.patch ui-vnc-Add-missing-lock-for-send_color_m.patch virtio-move-use-disabled-flag-property-t.patch - binutils v2.36 has changed the handling of the assembler's -mx86-used-note, resulting in a build failure. To compensate, we now explicitly specify -mx86-used-note=no in the seabios Makefile (boo#1181775) build-be-explicit-about-mx86-used-note-n.patch OBS-URL: https://build.opensuse.org/request/show/869843 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=614
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 5f96036c98cc2eada06186ff181c..903633e028266d6c7e73239672b0 100644
|
|
--- a/hw/block/xen-block.c
|
|
+++ b/hw/block/xen-block.c
|
|
@@ -270,6 +270,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);
|