From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRGZP-0000hs-9R for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:32:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRGZO-0005xK-GD for qemu-devel@nongnu.org; Fri, 08 Jun 2018 08:32:43 -0400 From: Ari Sundholm Date: Fri, 8 Jun 2018 15:32:25 +0300 Message-ID: <1528461148-17925-8-git-send-email-ari@tuxera.com> In-Reply-To: <1528461148-17925-1-git-send-email-ari@tuxera.com> References: <1528461148-17925-1-git-send-email-ari@tuxera.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v4 07/10] hw/block/nvme: 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 , Keith Busch , Kevin Wolf , Max Reitz , "open list:nvme" This allows the block driver to use the block configuration of the new NVMe device. One use for this information is to set request limits using this information. Signed-off-by: Ari Sundholm --- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 811084b..3b00dff 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1225,6 +1225,7 @@ static void nvme_realize(PCIDevice *pci_dev, Error **errp) false, errp)) { return; } + blkconf_apply_to_blkdrv(&n->conf); pci_conf = pci_dev->config; pci_conf[PCI_INTERRUPT_PIN] = 1; -- 2.7.4