Message ID | 20250310144516.28828-3-anthony.perard@vates.tech (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] xen/passthrough: use gsi to map pirq when dom0 is PVH | expand |
diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 2098286b5f..ec04102b66 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -408,6 +408,8 @@ static void xen_block_realize(XenDevice *xendev, Error **errp) } xen_device_backend_printf(xendev, "info", "%u", blockdev->info); + xen_device_backend_printf(xendev, "mode", + (blockdev->info & VDISK_READONLY) ? "r" : "w"); xen_device_frontend_printf(xendev, "virtual-device", "%lu", vdev->number);