From patchwork Tue Oct 30 05:18:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10660463 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 0951D13BF for ; Tue, 30 Oct 2018 05:20:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECDAB29A86 for ; Tue, 30 Oct 2018 05:20:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEB0929AAF; Tue, 30 Oct 2018 05:20:43 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8183A29A86 for ; Tue, 30 Oct 2018 05:20:43 +0000 (UTC) Received: from localhost ([::1]:50835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMSI-00075m-HS for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Oct 2018 01:20:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMQX-0005en-JW for qemu-devel@nongnu.org; Tue, 30 Oct 2018 01:18:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHMQX-0005PK-0K for qemu-devel@nongnu.org; Tue, 30 Oct 2018 01:18:53 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:33164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHMQR-0005LF-5q; Tue, 30 Oct 2018 01:18:47 -0400 Received: by mail-pl1-x641.google.com with SMTP id x6-v6so4938117pln.0; Mon, 29 Oct 2018 22:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ARCv4IjKSPobVgNSLALP6HFltlY0HnnBjGA7oAqzYBo=; b=ZquAd7yTSUhREqHHtNAntR1SNqeVeF68tk7suIxrrwCjw5gLv1UgYuLR6EwRV6ET5r VpoJwfiD3ECeKbhygzyYuWdbk25yMf4ukYqj1VTpEE2LB/a1+wLhsiN1od4eRQzrlcwR GHUjase0nj/erw2DWYAi6KihETj/ouL8RUA+R3pPwWNEwnvhxsGBH6gYZXH/I5g7VgA3 PNUCLgUImkIadVAiWTAT14c7omu03oaoBTImQeAOtwJm+gswf1gBizGoaomhB0YARvhU JGNZFGi3B5evxS/iblEMGGJ4bkM4+W0XCmmtqMTnUvf8MVIwkr3elkbrs3k9iDZ1c++i P+Lg== 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=ARCv4IjKSPobVgNSLALP6HFltlY0HnnBjGA7oAqzYBo=; b=YVz5nYjhkL+Syy1ERwbjeEeXOYs+6d+Uc/klC2IuQcLqspvVs9gGQBoeVSNfEJ/b7W iVdESC+Tr2lMHN/roZ2NBk065zAlms58VFZWECFsYHRw43UthzE+xlFQC/LY+SXt4/FJ HV2f/EgRaA6g0hnBqVXpoUmHY6lh1qqScsfEPzrovJVvxjhkSP5pDhWTWoq70cIK38o1 zsLCmUy6h8AIfK+b+jeFuBGXvzj44Xhl04Hx8aiDBPv0jepztxwTceZFSktzhCek+PtE 52ZMvf7A1jip4xpLEo9B0PiEVRis1K195QwQWyjtmrDtCNOfTYGMhy4mxN5lFfgw0UPx hxoA== X-Gm-Message-State: AGRZ1gJkvcoypTwUU9V6cNV/Y6GE/rHLjf3lzK3EfCnFXbMNLt8nYvZe F0IpMdGd0+mbmSYR7VygYeM= X-Google-Smtp-Source: AJdET5c+PUqra1QprPEYFK8Bh5hiCdvV9wW6r3PNTXneLHazVRNe6eBcIaGb2hSPVQVnietHTI0U+Q== X-Received: by 2002:a17:902:82ca:: with SMTP id u10-v6mr16635261plz.146.1540876726259; Mon, 29 Oct 2018 22:18:46 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.65]) by smtp.gmail.com with ESMTPSA id p129-v6sm11463729pgp.92.2018.10.29.22.18.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 22:18:45 -0700 (PDT) From: Li Qiang To: keith.busch@intel.com, kwolf@redhat.com, mreitz@redhat.com Date: Mon, 29 Oct 2018 22:18:36 -0700 Message-Id: <1540876720-9574-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::641 Subject: [Qemu-devel] [PATCH 0/4] nvme: some small fixes 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 Including sanity check and code cleanup. Li Qiang (4): nvme: use TYPE_NVME instead of constant string nvme: ensure the num_queues is not zero nvme: check msix_init_exclusive_bar return value nvme: use pci_dev directly in nvme_realize hw/block/nvme.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)