From patchwork Fri Jan 11 02:08:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10757205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3231513BF for ; Fri, 11 Jan 2019 02:10:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 207AA29C43 for ; Fri, 11 Jan 2019 02:10:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14C0B29C50; Fri, 11 Jan 2019 02:10:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B76AD29C43 for ; Fri, 11 Jan 2019 02:10:13 +0000 (UTC) Received: from localhost ([127.0.0.1]:34253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghmGy-0001A8-Ay for patchwork-qemu-devel@patchwork.kernel.org; Thu, 10 Jan 2019 21:10:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghmFo-0008GU-Fs for qemu-devel@nongnu.org; Thu, 10 Jan 2019 21:09:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghmFn-0004bD-VR for qemu-devel@nongnu.org; Thu, 10 Jan 2019 21:09:00 -0500 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:42123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghmFm-0004aI-AN; Thu, 10 Jan 2019 21:08:58 -0500 Received: by mail-ot1-x32c.google.com with SMTP id v23so11824929otk.9; Thu, 10 Jan 2019 18:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IRLLkpLtbPFPKNr2uNlQ25w11xmQBMtBJRLyBYfJjeQ=; b=maTidU84EETQ5btBw9UW4ZIh9arMppOKbx7cKips0rB8jvwj4TXmlwBCOlnChQV5il /KsKt0d/NVkgdU35HGArmc7SVSKBOS1zY8CGrhObhdiPR4UfW+gOhLZ6/OZxDrv53UhQ jhykLmZAbjsUUDkgqzURZS5Pb1ffzb+dRm6qfwbB3nTTZsv8Dob8yglIQzo1E81k5ajD roYJyFo8FnXwR5WQyM//NgmjGtNFFZGw2STFTdH0yIacPyfOlb3pVZtcHcCGtuEFtIik 6tsyGlYKvjyfuedED6l2DtarJBmSZ0xicxqWzy+b+OnZPgETfS4KFJCuu5nF9+niszxB RJXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IRLLkpLtbPFPKNr2uNlQ25w11xmQBMtBJRLyBYfJjeQ=; b=te5kCc83RzLdPfm7pyuOwGTiYekXibWE6hjSrhzuMss54Y+T61GOp1jPU4lxHSD6ov P7su6Js9ji1E6EIz+G+p1k5tnV4kzrnERcMknswsRJcoCbxn9wj+qOK2buyE8Ypq3f5G lbcglX9xeSVlZHnsCJVA4ZdLAau8rKXhBXBtxVCRbksBz5eWYu97n87Olg1hVNrse1nJ kBoT6cPrPDQFf5s3nQes+7eqk6Le5DgalGBdGp1kL3t0pfXKnApm8G2e05h8+KraFBww itSNCzTuxH02RfdOH5hrDppbqOlhoWyPbiGe9tXO+iPFYr/jNvcjBi8WIjSulJNIT5Tl YRJA== X-Gm-Message-State: AJcUukd/TvjWoLJmlrn23LfLLsy8FPWdyZEaMLHMKCypV6t2W7wj08fd OSBEoc1166yXGJ1H5+AhXtk= X-Google-Smtp-Source: ALg8bN5475nikCVRoDBZ5WiGRgACV1xr1yWkoq2n5VqBnzRI6YrRULcdbD1TkJGhxlItUwpuCuQz+Q== X-Received: by 2002:a9d:7c8c:: with SMTP id q12mr8996974otn.166.1547172537389; Thu, 10 Jan 2019 18:08:57 -0800 (PST) Received: from dockertest-VirtualBox.hz.ali.com ([205.204.117.36]) by smtp.gmail.com with ESMTPSA id u19sm37177122oia.31.2019.01.10.18.08.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 18:08:56 -0800 (PST) From: Li Qiang To: keith.busch@intel.com, kwolf@redhat.com, mreitz@redhat.com Date: Fri, 11 Jan 2019 10:08:46 +0800 Message-Id: <20190111020849.22674-1-liq3ea@gmail.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32c Subject: [Qemu-devel] [PATCH v2 0/3] nvme small fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , qemu-devel@nongnu.org, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset contains small fix. Change since v1: 1. drop the patch of checking return value of msix_init_exclusive_bar 2. return when nvme's num_queues configuration is 0 Li Qiang (3): nvme: use TYPE_NVME instead of constant string nvme: ensure the num_queues is not zero nvme: use pci_dev directly in nvme_realize hw/block/nvme.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)