[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 5/8] hw/block/virtio-blk: Always apply block conf

From: Ari Sundholm
Subject: [Qemu-devel] [PATCH v5 5/8] hw/block/virtio-blk: Always apply block configuration to block driver
Date: Tue, 19 Jun 2018 16:43:37 +0300

This allows the block driver to use the block configuration of the new
VirtIO block device. One use for this information is to set request
limits using this information.

Signed-off-by: Ari Sundholm <address@hidden>
 hw/block/virtio-blk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 225fe44..d5fb43b 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -974,6 +974,7 @@ static void virtio_blk_device_realize(DeviceState *dev, 
Error **errp)
     s->change = qemu_add_vm_change_state_handler(virtio_blk_dma_restart_cb, s);
     blk_set_dev_ops(s->blk, &virtio_block_ops, s);
     blk_set_guest_block_size(s->blk, s->conf.conf.logical_block_size);
+    blkconf_apply_to_blkdrv(&s->conf.conf);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]