From patchwork Thu Feb 29 13:29:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srujana Challa X-Patchwork-Id: 719 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 44E4943C1D; Thu, 29 Feb 2024 14:29:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD1B7402CD; Thu, 29 Feb 2024 14:29:26 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 64F11402AE for ; Thu, 29 Feb 2024 14:29:25 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41T83J1X022467; Thu, 29 Feb 2024 05:29:24 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=VIQ6KETj 0NXqOeGOo0JUrIdpebPJI0HIQ+otv39u0yw=; b=C+RO37wo4Tm0wElO94tFokYV 9+m8h1FgJn5bAG1wv2nDQaFj+NVurE3yMKCa3B2ZHtw0Q5Gqu9OtBJGalHPmJWpN TfT5v8entQVAi7N34OjmH4NhyryzMxJZVn4CHOOrcgAayBO/aMjeIbRT5/v0KDbs PDeZJERqPuLLhACERbAPsTW9emVN01kiUugVCoFoB8OGqY0fCzjuDNysPN/eLjYF E1CJtr/ngQsRs0qZ5a+n1RUG1ngK1EG7UjirX4K2OWxfqugLIaQQxZkKhpY9oIa9 3AQ6xHoEA0c0OFZYbHY46rCBs01PdfquO7/D70jden9QAoKefrcQ+NkN/Apevw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3wjp2y91j2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 05:29:24 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 29 Feb 2024 05:29:23 -0800 Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 29 Feb 2024 05:29:23 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 29 Feb 2024 05:29:23 -0800 Received: from localhost.localdomain (unknown [10.28.36.175]) by maili.marvell.com (Postfix) with ESMTP id CBF4B3F7252; Thu, 29 Feb 2024 05:29:20 -0800 (PST) From: Srujana Challa To: , , CC: , , , Subject: [PATCH v2 0/3] net/virtio: support IOVA as PA mode for vDPA backend Date: Thu, 29 Feb 2024 18:59:16 +0530 Message-ID: <20240229132919.2186118-1-schalla@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: KU29jxdkhbxVFOq3HdRY-gLO076kLkOj X-Proofpoint-ORIG-GUID: KU29jxdkhbxVFOq3HdRY-gLO076kLkOj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-29_02,2024-02-29_01,2023-05-22_02 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 This patch series makes Virtio-user works in IOVA as PA mode for vDPA backend. First patch fixes the issue when having buffer IOVA address in control queue descriptors. Second and third patches helps to share descriptor IOVA address, to the vhost backend. And also disables the use_va flag for VDPA backend type. v1->v2: - Split single patch into three patches. Srujana Challa (3): net/virtio_user: avoid cq descriptor buffer address accessing net/virtio: store desc IOVA address in vring data structure net/virtio_user: support sharing vq descriptor IOVA to the backend drivers/net/virtio/virtio_ring.h | 12 ++- .../net/virtio/virtio_user/virtio_user_dev.c | 94 ++++++++++--------- drivers/net/virtio/virtio_user_ethdev.c | 10 +- drivers/net/virtio/virtqueue.c | 4 +- 4 files changed, 69 insertions(+), 51 deletions(-)