diff mbox series

[v3,05/10] hw/ide/qdev: Always apply block configuration to block driver

Message ID 1528385894-19434-6-git-send-email-ari@tuxera.com
State New
Headers show
Series New block driver: blklogwrites | expand

Commit Message

Ari Sundholm June 7, 2018, 3:38 p.m. UTC
This allows the block driver to use the block configuration of the new
IDE device. One use for this information is to set request limits
using this information.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
---
 hw/ide/qdev.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
index f395d24..7da1d28 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -214,6 +214,8 @@  static void ide_dev_initfn(IDEDevice *dev, IDEDriveKind kind, Error **errp)
         dev->serial = g_strdup(s->drive_serial_str);
     }
 
+    blkconf_apply_to_blkdrv(&dev->conf);
+
     add_boot_device_path(dev->conf.bootindex, &dev->qdev,
                          dev->unit ? "/disk@1" : "/disk@0");
 }