From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVGvJ-0004aM-2u for qemu-devel@nongnu.org; Tue, 19 Jun 2018 09:43:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVGvI-0005e9-Ai for qemu-devel@nongnu.org; Tue, 19 Jun 2018 09:43:53 -0400 From: Ari Sundholm Date: Tue, 19 Jun 2018 16:43:36 +0300 Message-ID: <1529415820-7750-5-git-send-email-ari@tuxera.com> In-Reply-To: <1529415820-7750-1-git-send-email-ari@tuxera.com> References: <1529415820-7750-1-git-send-email-ari@tuxera.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v5 4/8] hw/ide/qdev: Always apply block configuration to block driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ari Sundholm , John Snow , "open list:IDE" 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 --- 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 ? "/disk@1" : "/disk@0"); } -- 2.7.4