From patchwork Tue Feb 15 15:02:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Xuan" X-Patchwork-Id: 107564 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C26BA00C5; Tue, 15 Feb 2022 07:25:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 318AF40E78; Tue, 15 Feb 2022 07:25:57 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 0CE7D40DDA for ; Tue, 15 Feb 2022 07:25:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644906356; x=1676442356; h=from:to:cc:subject:date:message-id; bh=I0iRebRg8KHkkiEUedf93ZxhFWzWaI0jet8BN3OH6QQ=; b=VJpTKb4uZi77lm59tNbfQQBCuTLn8IBhyrhL/6GgHRd7baXSUvfzTLex KAg1Hthz8Icx9atn49Fj0PPeFDeOAWiLATznQnHO5EMilNiO32SkKkp7C WijroxSt6HBU0bIokVO1t40WJ1z3M8meO/czThzXCKkB/moCv3mB+dffx XGkx6/6nn/c7+ed/W8dWeAJ5MKr9FRuKpaqFmiHO8Cdw4Lj7pT0xQ0l5P 86sFxVXiRnMeR6aL5YKhwKt/CabH87oyaYjOaykWu8p03OPKyoxz8OkeD NW7a6fUK1zlsxLSmcmpilBBgzyLtIYIiSBk4RHqhLF9lp/G6eLSnysKJK Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="233806856" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="233806856" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:25:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="570656189" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228]) by orsmga001.jf.intel.com with ESMTP; 14 Feb 2022 22:25:52 -0800 From: xuan.ding@intel.com To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, ktraynor@redhat.com, jiayu.hu@intel.com, yuanx.wang@intel.com, Xuan Ding Subject: [PATCH v3 0/2] vhost: fix async address mapping Date: Tue, 15 Feb 2022 15:02:24 +0000 Message-Id: <20220215150226.98292-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Xuan Ding This patchset fixes the issue of incorrect DMA mapping in PA mode. Due to the ambiguity of host_phys_addr naming in the guest page struct, rename it to host_iova. v3: * Fix some format issues. v2: * Change the order of patch. Xuan Ding (2): vhost: fix field naming in guest page struct vhost: fix physical address mapping lib/vhost/vhost.h | 11 ++-- lib/vhost/vhost_user.c | 134 ++++++++++++++++++++--------------------- lib/vhost/virtio_net.c | 11 ++-- 3 files changed, 77 insertions(+), 79 deletions(-)