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: 990661 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZquAd7yT"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42kft82QfSz9s5c for ; Tue, 30 Oct 2018 16:20:00 +1100 (AEDT) Received: from localhost ([::1]:50826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMRZ-0005vC-TH for incoming@patchwork.ozlabs.org; Tue, 30 Oct 2018 01:19:57 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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(-)