From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17178C2B9F4 for ; Mon, 28 Jun 2021 17:17:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9526061C43 for ; Mon, 28 Jun 2021 17:17:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9526061C43 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxutB-0006Us-Eq for qemu-devel@archiver.kernel.org; Mon, 28 Jun 2021 13:17:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxukY-0006td-8W; Mon, 28 Jun 2021 13:08:46 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:49429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxukW-0006PS-Jn; Mon, 28 Jun 2021 13:08:46 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DCDDC5C0131; Mon, 28 Jun 2021 13:08:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 28 Jun 2021 13:08:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=uR72MShrS3g+DS1HEqabup1ZFvS TY18SFbSHkm+wgtw=; b=KZH66Waf+e9ye3uqYdcZaC4hyiibp/hkl6M3acXHZzn rCBs/zACKVvtepV05iLa2hWU4i+ErOWer6gYGGXqGUMO4BMLv2cyBf+iPF+W5iHJ 1SAWPq7ipSiUrR7QfeUcsIKOl++zVKo8rASytnY0bcPyPLz0DOxUhRwhA2lvgLwr 63AsVuvDdPVQ0SFRI/OWAz/3DSNCtc1lCWxXrTiFyQSuLwRtoHg/mujWJfDzmYYa O1jkqWdUmdZwru48hCPSO8A3JpVy9eVJdIXc2Wrt1ZJoCtSyjVnFAb4xEeLNBLDq jG586buKOLR/1kVCXYrwSNgZc+0vEkglI9/8ToU5dew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=uR72MS hrS3g+DS1HEqabup1ZFvSTY18SFbSHkm+wgtw=; b=EssDM/wvUXHz6CzJhlajHQ mym2SBdQkTHSOUMCtd24/c+wbStCdTUCuD3/U1YIn7JdJVIa5Uvv9UTKYAn8OVHs O3QdmtwUPZaA5ZXeuHNfOT+giIzOroQ2BxGy1eRAa9zGBPn6LrAbK361PUnBCsGC XO0Pz7ZK5EWCqPsnwItzhnMfXAsT73cKIXY38mFWpl0Q2dG0tJ8gGaoaufNehA9v phdTN/KQ2mibGxOL9+eMd4Vm1I0GoWkFXZrrsTZKVH9eRh/gFolQGokHvQITx2pg JVXj22pyFnBpTzO63VNjvOzrjT6SA4lDvlm6XgADRNAX2slMZ/+/RD58aHY9JM4g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehgedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepmfhlrghu shculfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrth htvghrnhepjeegudffueeiteekieelkedvueelteevjeduieeludfffeejgeffhfduvddu ffeknecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepih htshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Jun 2021 13:08:40 -0400 (EDT) Date: Mon, 28 Jun 2021 19:08:38 +0200 From: Klaus Jensen To: qemu-devel@nongnu.org Subject: Re: [PATCH v2 00/11] hw/nvme: reimplement all multi-aio commands with custom aiocbs Message-ID: References: <20210617190657.110823-1-its@irrelevant.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Sd2zDJUE2/+UaXiU" Content-Disposition: inline In-Reply-To: <20210617190657.110823-1-its@irrelevant.dk> Received-SPF: pass client-ip=66.111.4.29; envelope-from=its@irrelevant.dk; helo=out5-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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Kevin Wolf , Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org, Klaus Jensen , Max Reitz , Stefan Hajnoczi , Keith Busch Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --Sd2zDJUE2/+UaXiU Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 17 21:06, Klaus Jensen wrote: >From: Klaus Jensen > >This series reimplements flush, dsm, copy, zone reset and format nvm to >allow cancellation. I posted an RFC back in March ("hw/block/nvme: >convert ad-hoc aio tracking to aiocb") and I've applied some feedback >from Stefan and reimplemented the remaining commands. > >The basic idea is to define custom AIOCBs for these commands. The custom >AIOCB takes care of issuing all the "nested" AIOs one by one instead of >blindly sending them off simultaneously without tracking the returned >aiocbs. > >v2: > - dropped RFC > - fixed flush cancel from being unintentially a noop (Vladimir) > >Klaus Jensen (11): > hw/nvme: reimplement flush to allow cancellation > hw/nvme: add nvme_block_status_all helper > hw/nvme: reimplement dsm to allow cancellation > hw/nvme: save reftag when generating pi > hw/nvme: remove assert from nvme_get_zone_by_slba > hw/nvme: use prinfo directly in nvme_check_prinfo and nvme_dif_check > hw/nvme: add dw0/1 to the req completion trace event > hw/nvme: reimplement the copy command to allow aio cancellation > hw/nvme: reimplement zone reset to allow cancellation > hw/nvme: reimplement format nvm to allow cancellation > Partially revert "hw/block/nvme: drain namespaces on sq deletion" > > hw/nvme/nvme.h | 10 +- > include/block/nvme.h | 8 + > hw/nvme/ctrl.c | 1883 ++++++++++++++++++++++++------------------ > hw/nvme/dif.c | 64 +- > hw/nvme/trace-events | 21 +- > 5 files changed, 1124 insertions(+), 862 deletions(-) > >--=20 >2.32.0 > Applied to nvme-next. --Sd2zDJUE2/+UaXiU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmDaAhUACgkQTeGvMW1P DelDkgf9GHDSznyoOJnMhTbZx0Z6p4Ws+IlnLtJrgTMp+dqp3+Mfqq63UBClq9hl sg7lnoRcR+GuCvWeM2iOb3vS46i/p3rv8nZT0euDts7pK5vBsnl5sOopgSB3RLE2 712HUD4k5StqBcTSMyIYT2Jao3H0yLIg/N82AcqwcXYVrrwcipWCPR8dGsQzEbYy Cr7cWvLo5Bjh0W6T8Fy1huV/maZ82mWeUsrORVF/DxuvJoP4bpOWP0X3+pODL2aB ZfvfoktHNojqcd0cPJCrcOsMpxkt1GaCqG8LrMM9deZ1RHecZdhRzT0KQip9/i7g VBmGAWsiOTqIIix16w0r4F60ahFPCA== =IZVK -----END PGP SIGNATURE----- --Sd2zDJUE2/+UaXiU--