From patchwork Mon Jul 20 11:37:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 11673527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A550A13B4 for ; Mon, 20 Jul 2020 11:39:25 +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 7CD5622B4E for ; Mon, 20 Jul 2020 11:39:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=irrelevant.dk header.i=@irrelevant.dk header.b="v8vhCklF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CD5622B4E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:47632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxU8i-0000vn-PE for patchwork-qemu-devel@patchwork.kernel.org; Mon, 20 Jul 2020 07:39:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxU7M-0007Ek-U4; Mon, 20 Jul 2020 07:38:00 -0400 Received: from charlie.dont.surf ([128.199.63.193]:46806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxU7J-00058c-Pj; Mon, 20 Jul 2020 07:38:00 -0400 Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by charlie.dont.surf (Postfix) with ESMTPSA id 34A01BF5BE; Mon, 20 Jul 2020 11:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=irrelevant.dk; s=default; t=1595245074; bh=QS5uBrENoJy7XphDGLMgUjDXhF4BDtOxlPzbV3xG0ws=; h=From:To:Cc:Subject:Date:From; b=v8vhCklFIa1jNKtylxbevJSPazH6OHhCrCfjuezRr8kOJDRMHqqsO/XVHjAvgOkjo Ey4L9LxzD6lQuHkz0Fs1FPpONvSkZl/0wfeAn6KW5WR5Ct5Y1ViMiRW6dGz0lh3wHw QRjC6CyUryJKVjTi5u5swv+zvZN2qVX9ztzS6afk+aFcHngSrZ1yZG6L++LJ6naKlR 558DGy480IadlAhiAEb0/h8YbN/H5snyNp6LSSZ1EEHh0+IvfZY9XS2cDIvPXt6KYA IKtu7LNYDcWgVVAFdssb9k+pkSzXMRj85Y0Gud+0jny8VJUVtPI3VF9X8L9UdSDtaK kG1HyBAdREE2g== From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH 00/16] hw/block/nvme: dma handling and address mapping cleanup Date: Mon, 20 Jul 2020 13:37:32 +0200 Message-Id: <20200720113748.322965-1-its@irrelevant.dk> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Received-SPF: pass client-ip=128.199.63.193; envelope-from=its@irrelevant.dk; helo=charlie.dont.surf X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/20 07:37:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: Kevin Wolf , qemu-block@nongnu.org, Klaus Jensen , Max Reitz , Keith Busch , Klaus Jensen Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen This series consists of patches that refactors dma read/write and adds a number of address mapping helper functions. Based-on: <20200706061303.246057-1-its@irrelevant.dk> Klaus Jensen (16): hw/block/nvme: memset preallocated requests structures hw/block/nvme: add mapping helpers hw/block/nvme: replace dma_acct with blk_acct equivalent hw/block/nvme: remove redundant has_sg member hw/block/nvme: refactor dma read/write hw/block/nvme: pass request along for tracing hw/block/nvme: add request mapping helper hw/block/nvme: verify validity of prp lists in the cmb hw/block/nvme: refactor request bounds checking hw/block/nvme: add check for mdts hw/block/nvme: be consistent about zeros vs zeroes hw/block/nvme: refactor NvmeRequest clearing hw/block/nvme: add a namespace reference in NvmeRequest hw/block/nvme: consolidate qsg/iov clearing hw/block/nvme: remove NvmeCmd parameter hw/block/nvme: use preallocated qsg/iov in nvme_dma_prp block/nvme.c | 4 +- hw/block/nvme.c | 498 +++++++++++++++++++++++++++--------------- hw/block/nvme.h | 4 +- hw/block/trace-events | 4 + include/block/nvme.h | 4 +- 5 files changed, 331 insertions(+), 183 deletions(-)