From patchwork Fri Jan 29 09:15:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 1433160 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: 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=fm2 header.b=1pVbQMnt; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=CHGbt3ww; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4DRsG30vYyz9sW0 for ; Fri, 29 Jan 2021 20:18:32 +1100 (AEDT) Received: from localhost ([::1]:37812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5PvA-0006UM-IG for incoming@patchwork.ozlabs.org; Fri, 29 Jan 2021 04:18:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Psf-0006TK-1d; Fri, 29 Jan 2021 04:15:53 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Psb-0003cW-Og; Fri, 29 Jan 2021 04:15:52 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 625085C015A; Fri, 29 Jan 2021 04:15:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 29 Jan 2021 04:15:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=7qJd+CC/Lsu6U88MlRXSpG0FvZ 7kM16yA/MBpMOVF1M=; b=1pVbQMntYnBOvLNaCsON9KhYme9vWELtuFKi1csnzt 1Exrv9GRAVIBMVTD+0zhkyz59+lL6zZ2z8QXv5DuVY4/whzr0b18he88bo1GRKGx LSbDrKzvociAzBECRl/sfRduTTn1snWLJ2uwlXxXO4TN4I+luW11mo6UU/YBS8fD 4CB/HqxpQhiZlXS+4o1xR+8Ub26Tb5bOJW0pCXSw1HYGcq0kOkBcDdfE0DdgMRIm 04JAIlvbNyESgiPQwYHFbXg4hBhlofPBCnto3Sif9r8ZyVSaMhxkDX8Hakt4OKiv dgIJ9ejo8Pi90MXK4+S0stsyqowsqG3nAFZmJTtFTU3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=7qJd+C C/Lsu6U88MlRXSpG0FvZ7kM16yA/MBpMOVF1M=; b=CHGbt3wwpyh1f8ZccNjO5Z C1VQ7XsTWXAl8/Z5RbRx3COS86nhHPLUX0ugVDhtDjZvSp2DUvgcmzkWeLJBw/Jz ZVcgyphMoCpn6VgVGG4pohp/SxSZ7twrzts2W0LGOf6uVhW656wVj2mknBLUXZbP xM/In8mnq/QI6xGSAhgNB5u0iabBnqu2FeiC81I78lqry+ve/gqn8aSVRIyFIW+j zV1IbWMAMGCkl7/nE+EMJvgI8j1VnA9gFld8LRFXbdTZBX6XmTZbti1l6EE3fGpg PRSEynEfILSaCFjAulSAa+OwPjJYtlqXnBUO5DNf0AKn++k07dgz005hs5CgE0Vg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh ephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepmfhlrghushculfgvnhhs vghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrthhtvghrnhephf egveekiefgkeevvdetjeejkeekudfgvdehieejfffgkeffvdevlefftedvgefhnecukfhp peektddrudeijedrleekrdduledtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhtshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 32A0324005C; Fri, 29 Jan 2021 04:15:44 -0500 (EST) From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH v5 0/5] hw/block/nvme: add simple copy command Date: Fri, 29 Jan 2021 10:15:36 +0100 Message-Id: <20210129091541.566330-1-its@irrelevant.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 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_H3=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 , qemu-block@nongnu.org, Klaus Jensen , Max Reitz , Klaus Jensen , Stefan Hajnoczi , Keith Busch Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen Add support for TP 4065 ("Simple Copy Command"). Changes for v5 * rebased on nvme-next (support for zoned namespaces) Changes for v4 * merge for-loops (Keith) Changes for v3 * rebased on nvme-next * changed the default msrc value to a more reasonable 127 from 255 to better align with the default mcl value of 128. Changes for v2 * prefer style that aligns with existing NvmeIdCtrl field enums (Minwoo) * swapped elbat/elbatm fields in copy source range. I've kept the R-b and A-b from Minwoo and Stefan since this is a non-functional change (the device does not use these fields at all). Klaus Jensen (5): hw/block/nvme: remove unused parameter in check zone write hw/block/nvme: refactor zone resource management hw/block/nvme: pull write pointer advancement to separate function nvme: updated shared header for copy command hw/block/nvme: add simple copy command hw/block/nvme-ns.h | 4 + hw/block/nvme.h | 1 + include/block/nvme.h | 45 +++- hw/block/nvme-ns.c | 8 + hw/block/nvme.c | 494 +++++++++++++++++++++++++++++++----------- hw/block/trace-events | 7 + 6 files changed, 431 insertions(+), 128 deletions(-) Reviewed-by: Keith Busch