From patchwork Thu Jun 23 21:18:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 1647357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=irrelevant.dk header.i=@irrelevant.dk header.a=rsa-sha256 header.s=fm1 header.b=T0sOUHnA; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QEjTBRxg; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LTY6D3r1Qz9s07 for ; Fri, 24 Jun 2022 07:19:15 +1000 (AEST) Received: from localhost ([::1]:48538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4UEJ-0005d2-Pu for incoming@patchwork.ozlabs.org; Thu, 23 Jun 2022 17:19:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UDg-0005bW-PV; Thu, 23 Jun 2022 17:18:32 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:41735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UDe-000443-9i; Thu, 23 Jun 2022 17:18:32 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BAA3832007BE; Thu, 23 Jun 2022 17:18:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 23 Jun 2022 17:18:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1656019105; x=1656105505; bh=S4 U91liIMzavhJlcUBWlB16qpSfD43zSyZovZPIvjWg=; b=T0sOUHnAcxIBJlswcN 8nzdy2bJEPMqPAgVJqp+GTwb7rGUPFunSp2LyyNqEoRY965qKGLNhXYPkwMb4VXc rgoq4atzhtyPQgCR5Uh6GNndQF6bq7KVbmZq+WFol5qzyVDzg9Q5nY+eqH1dlxem a/chVEmLL1Oc5bI5xLKqs7Hi1f/7pP8mWDjB8KBF14JPdiQWSnzPTPRdhHZohk4Y A1hyxzTVx/dLl6IYPNy7iEySaJyKmsZlyojZcDXhm2HybEVrJOLtqAofFTkvxSRP J9in4KoD4/W+sBW/PEN3tbxl9bndMkVcSUDuPk+qV9MkwJ3Vk5+hsGL+wtWuyhsh 3JbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1656019105; x=1656105505; bh=S4U91liIMzavh JlcUBWlB16qpSfD43zSyZovZPIvjWg=; b=QEjTBRxg/T9yYlDAPev7Ai0bKzMl+ qo83if8QlDLYotCMaBwVlR9QgVq1K2yRG5UdLjE/bEYAeKa0VIlPxp1qqK4To+Rh atfnThwKkod6pQ303qYPhqUEOesb+Q79ZUykpkC6DP4NKURwKk+OV1tREm028CRa 1xpO6Avo/4Y/aigutK6MCeJP5yLAW0Wc+ipeeP8FCSgs8dRT8z5nxv16DhSAbyaS t/RIRm45wAjKqtEcKnql65hbANYRerffrTOf8P5MrWor14BCpdWZjQLtd+S3GH8W RBIJ0ocf/je+yFVAY7QI+qZgF6WQUFtzODqY1nftG3fCiAkvj+JSAnxdg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffotggggfesthhqredtredtjeenucfhrhhomhepmfhlrghu shculfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrth htvghrnhepieehteejvdejkeelueehhffhffefuddvjeevleeijeeuheejgfettdfhteef hfdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih htshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Feedback-ID: idc91472f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Jun 2022 17:18:23 -0400 (EDT) From: Klaus Jensen To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Keith Busch , Klaus Jensen , Klaus Jensen Subject: [PATCH 00/12] hw/nvme: misc fixes and updates Date: Thu, 23 Jun 2022 23:18:09 +0200 Message-Id: <20220623211821.50534-1-its@irrelevant.dk> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.21; envelope-from=its@irrelevant.dk; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen This series includes a couple of misc fixes as well as some cleanup pertaining to the aio handling in flush, dsm, copy and zone reset. As Jinhao gets around to iothread stuff, it might come in handy to have this stuff cleaned up a bit. Dmitrys fix (nvme-next commit "hw/nvme: add missing return statement") for dsm prompted me to audit the flush, dsm, zone reset and copy code and that resulted in the discovery of some bugs and some general clean up. Klaus Jensen (12): hw/nvme: fix incorrect use of errp/local_err hw/nvme: remove redundant passing of PCIDevice hw/nvme: cleanup error reporting in nvme_init_pci() hw/nvme: fix numzrwa handling hw/nvme: fix accidental reintroduction of redundant code hw/nvme: fix cancellation of format operations hw/nvme: fix flush cancel hw/nvme: rework flush bh scheduling hw/nvme: improve cancellation handling in zone reset hw/nvme: improve cancellation handling in dsm hw/nvme: simplify copy command error handling hw/nvme: align logic of format with flush hw/nvme/ctrl.c | 252 +++++++++++++++++++++++-------------------------- hw/nvme/ns.c | 4 +- 2 files changed, 119 insertions(+), 137 deletions(-)