From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28A6D269B07; Wed, 23 Apr 2025 15:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745420753; cv=none; b=ELJSRVoqs6mUrxRLtJbYjie9Bkw29bgmOCNV8i/T7VJD8xe345Y1iOhGwmdrN04csahAlWGd+mpnozo2Qwr3Pdm9hIQAp6dRnx+2Zy2YQ5JT07OlPnKUt+OIA+gYrSqkRyVKh9KJ6N6Y7p4E8WKBP8CdYXR5xJeAlh8s1L0yJ50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745420753; c=relaxed/simple; bh=+pgwEq/v7P8f/AIzuDnfFPRQJNNWeIXj7j55MF1ARFk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sYKsmoLF1IX2WZMtgUJKcxDPYHH85sedbtne76t45j1KEuqAombzUP1SIpuOIBCf8Xn4FRmG0r2eKT8SdgP4Tz3FTs5+/qhtmbNxtmHdKikJKGbOc3oZvbzNs6gREJdiMtYwx7qwyMKPlPnZ8xi7e/eAoui4mXpPEYcNxhJ1ZjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dFJx/822; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dFJx/822" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 901EFC4CEE3; Wed, 23 Apr 2025 15:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745420752; bh=+pgwEq/v7P8f/AIzuDnfFPRQJNNWeIXj7j55MF1ARFk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dFJx/822j4GTOfsd2flNm5Ey/TaUnXvZT5qb1IFKN8MDVYAFjFrSYj2QuqzBXOI34 cCL2AjpTOhK3gqFdVzm60QZZvEA+ZIjYjEMhAIT2Om4kk9CpVlY+UMwZFizRz2A4FV x2Kc0vTLaMJFho4pwEjsYBGAdyZMrqxDedEJqMD9wYE2ukoG/n7seIhucFhuW31zDW UmvL8uviiKFbeGy65gClBxfYw6dpkBtsqH4du4EF8WICj2EuxnuXGLSAWwcwRzUmrc x84yDhW8Ij5YIQpP/JKhV3PMooMVAUA5y9/B5QkJayW+yclq7f2CrbG5CDNIkG4bD0 7IzL5VKJcHazg== Date: Wed, 23 Apr 2025 09:05:48 -0600 From: Keith Busch To: Christoph Hellwig Cc: Leon Romanovsky , Marek Szyprowski , Jens Axboe , Jake Edge , Jonathan Corbet , Jason Gunthorpe , Zhu Yanjun , Robin Murphy , Joerg Roedel , Will Deacon , Sagi Grimberg , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, Niklas Schnelle , Chuck Lever , Luis Chamberlain , Matthew Wilcox , Dan Williams , Kanchan Joshi , Chaitanya Kulkarni , Nitesh Shetty , Leon Romanovsky Subject: Re: [PATCH v9 23/24] nvme-pci: convert to blk_rq_dma_map Message-ID: References: <7c5c5267cba2c03f6650444d4879ba0d13004584.1745394536.git.leon@kernel.org> <20250423092437.GA1895@lst.de> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250423092437.GA1895@lst.de> On Wed, Apr 23, 2025 at 11:24:37AM +0200, Christoph Hellwig wrote: > Right now I don't have a test setup for metasgl, though. Keith, > do you have a good qemu config for that? Or anyone else? QEMU does support it, and reports support for it by default (you may need to upgrade qemu if yours is more than a year old). You just need to format your namespace with metadata then you can send commands with either SGL or MPTR. QEMU supports 0, 8, 16, and 64 metadata bytes on either 512b or 4k block sizes. If you want 8 bytes for metadata on start up, attach parameter "ms=8" to the '-device nvme-ns' qemu setup. Alternatively, you can use the 'nvme format' command after booting to change it whenever you want.