Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (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 BDD3746B5 for ; Tue, 29 Apr 2025 13:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745932809; cv=none; b=kOZmiLx9Dpw7AZzhcFxSAfbj+swag5qXxFHDN4I6Q3IRVoiqFwA2rdSf3h0wrf4TKiih7iXoye/AngxyI6roin9HJeOSZ0kNH/Ol9lfvCyg5ZPr4IM0EwEHcX+hA1lIGlK5ZW5RZAZcB3hpw5a+KPK1f3zAFLBGVRs7RWNj83lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745932809; c=relaxed/simple; bh=dlsFysfTiAkxNHLZKo4lN+uvnZwPLF5pC6ElgqDOKLw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JxUrCrtW+GQJvshPvdsRIh8RKnsymX7aCsuz3v40FrORd68J2hAC+jnf34WH03/k4MfjyiE42QvOvsAdtQeD+bO5D50pbANGGkZz7fY9uhQvRRA+zGUSa72S+uRweLfX5JXo9LP5oDxRYHm81BGeev2hOepOkeFWN9ytB4i0n/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=lR7Qq/ed; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="lR7Qq/ed" Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53T6lGJf024864; Tue, 29 Apr 2025 06:20:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=aBUMnQ9/sq7dw+HWIsBTnGI j971R8D5Kfb945b5543g=; b=lR7Qq/ed3l/Dh6xxlbH29VIrhMbGC+6acIUub8U K3YbLRVc4UEARzNQa0A8gxHNb58TPrWhVnpkPfPALqWtgbfgNWNh/odpqqE0IzZU RGwmvBHbiLKBWEcdU3ZDyHuR77a5Fyn8WM4GE045ppDNWPdV2h7b58w2IFB6VYfV 9yu/gjAxqT9F0b3sUh1YTWaRX03C7MEcHewEgALVAnaRKGAWILeWWsfRxG4C0TDN v0XRHEA1MRqGekABV/WjzP4WWs3ewDH9vAYQA2g5j2FmGHYPkByadaIvYiqaQFZP 66S3F+9LlEXWqJMKPjaUReMNXtN4zM9UdEhS9WU/lHKOVOQ== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 469krccmk8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Apr 2025 06:20:00 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 29 Apr 2025 06:19:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 29 Apr 2025 06:19:58 -0700 Received: from localhost.localdomain (unknown [10.28.36.175]) by maili.marvell.com (Postfix) with ESMTP id F330F5B694D; Tue, 29 Apr 2025 06:19:54 -0700 (PDT) From: Srujana Challa To: CC: , , , , , , , , , Subject: [PATCH v6 0/4] introduce IPsec Service in virtio-crypto Date: Tue, 29 Apr 2025 18:49:49 +0530 Message-ID: <20250429131953.1949757-1-schalla@marvell.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: virtio-comment@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 9XJ0A-2U7r7NES1G4thD0NpfGViezyCK X-Authority-Analysis: v=2.4 cv=f61IBPyM c=1 sm=1 tr=0 ts=6810d200 cx=c_pps a=gIfcoYsirJbf48DBMSPrZA==:117 a=gIfcoYsirJbf48DBMSPrZA==:17 a=XR8D0OoHHMoA:10 a=mchOrBHCVxKrAIYRA8sA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI5MDA5OSBTYWx0ZWRfX7MjGY1y1C01L rb3O7abNC036NsWlkjEgTWDMmkNOTRIVJZ0HuU9/i8pI35qR2c/mE5jQv1mxJBpWGE0PaKl9qEH HzVl/urC8QdkR1ez33bnJkmPdzopfwQ+jEZ5IFduMTvZOl4CpvSIF0gh10XSpQybfGQiEH3E7IV 3kwkoPxDtuunxfaG4mnrux4rPgqdN1jQXUcFNsV8F07/4Q291FIpr1Gu5wD7fhg+hxa+kzusKny x1dXJhRL0lpNOhEOsul5PvykRNffi/8NIg290nEmyFiQKRfj8EXS6GeLPQbFKJ7RwlTffijs2zt oYKM4xnhO4/Z2jKz5x9sBZndoJs7hXujtPg7KGSlUcyZBN0l32u8+jSn9nBDpe9PGDGSn7yxy6s cGdDpaZ1IXYBJ/zl4zWTkFA0puZj71ttOFvy1kiSjeQnof8oD393/vH/KQtxwDs8QLKuBhsO X-Proofpoint-ORIG-GUID: 9XJ0A-2U7r7NES1G4thD0NpfGViezyCK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-29_04,2025-04-24_02,2025-02-21_01 This series enhances virtio-crypto by adding support for IPsec services. These patches aim to extend the capabilities of virtio-crypto, enabling it to handle IPsec operations efficiently. In addition to standard crypto processing, the IPsec protocol processing is also offloaded to the Crypto device as lookaside operation. It utilizes new virtio basic facilities, including capability and resource objects. Below is a summary of the changes introduced: Patch1: This patch introduces the foundational support for IPsec services within the virtio-crypto framework, outlining the necessary capabilities for IPsec operations. Patch2: This patch adds resource objects required for programming IPsec Security Associations (SAs) for both encryption and decryption processes. Patch3: This patch includes new opcodes specific to IPsec operations, facilitating the handling of IPsec data requests within the virtio-crypto driver. Patch4: This patch specifies the requirements for both the device and the driver to support IPsec operations. These enhancements are for providing support for IPsec within the virtio-crypto device/driver, improving security and performance for virtualized environments. We believe these additions will significantly benefit users who rely on virtio-crypto for secure data transmission. v2: - Addressed the review comments from Matias. v3: - Addressed the review comments from Parav Pandit. v4: - Introduced COPY_DF, ECN and SA LIFETIME to the SA options. - Introduced SA lifetime to the SA resource object data structure. - Set cipher and auth key arrays to fixed sizes. v5: - Addressed minor review comments from Parav Pandit. v6: - The esn field has been removed from the IPsec SA resource object. Srujana Challa (4): virtio-crypto: Add IPsec service operation and Capabilities virtio-crypto: Add resource objects for IPsec outbound and inbound SAs virtio-crypto: Add new IPsec opcodes to data request virtio-crypto: Add device and driver requirements for IPsec operation device-types/crypto/description.tex | 510 ++++++++++++++++++++- device-types/crypto/device-conformance.tex | 1 + device-types/crypto/driver-conformance.tex | 1 + introduction.tex | 12 + 4 files changed, 519 insertions(+), 5 deletions(-) -- 2.25.1