qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v5 4/8] hw/ide/qdev: Always apply block configuratio


From: Ari Sundholm
Subject: [Qemu-devel] [PATCH v5 4/8] hw/ide/qdev: Always apply block configuration to block driver
Date: Tue, 19 Jun 2018 16:43:36 +0300

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 <address@hidden>
---
 hw/ide/qdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
index 573b022..65d862a 100644
--- a/hw/ide/qdev.c
+++ b/hw/ide/qdev.c
@@ -213,6 +213,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 ? "/address@hidden" : "/address@hidden");
 }
-- 
2.7.4




reply via email to

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