From nobody Sat Nov 15 14:53:45 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=marvell.com ARC-Seal: i=1; a=rsa-sha256; t=1750942109; cv=none; d=zohomail.com; s=zohoarc; b=NTPCLISBYnYI9isGU2bqRhDf+oPh8I3185ttHOgtZOh6D2bAedQs3d64gOWieQbW+ZQmU6uIi+htgDXBZmafDMLPOxqhp3J1804pcWQpx9CgM2/zkNdtp7JUiMJ0NBZNgdkkLZPeA1rBqf0c7Z1ZOYIpoIYwSpaNK3DqB23tO4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750942109; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=93DsU75GNxQFAnfZw+KjtTjXvdDdy4FE9C09G2xNI1M=; b=XQTpyQUDkhwCvctOkFItMop001qSPtYrJaeiCwPPJ29wYhc1rSFQqiOzcDzuhUf8ZS9d54eQ2l4ntKmq+18nYggi115Nt1/crNLjCsAaz0yybF/kfDxr4VVrmCEcD36UN2Pr0RPPoV8uDyCW4IVJ96nlfrNKRYuevGUkeK+WPbw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1750942109901411.5160705272875; Thu, 26 Jun 2025 05:48:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uUm0m-0004Q5-Ng; Thu, 26 Jun 2025 08:47:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uUlf9-0001Bp-3G for qemu-devel@nongnu.org; Thu, 26 Jun 2025 08:25:08 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uUlf3-0006Ay-Dl for qemu-devel@nongnu.org; Thu, 26 Jun 2025 08:25:06 -0400 Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55QARnZO032042; Thu, 26 Jun 2025 05:24:55 -0700 Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 47h4f786f3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Jun 2025 05:24:54 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 26 Jun 2025 05:24:53 -0700 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.1544.4 via Frontend Transport; Thu, 26 Jun 2025 05:24:53 -0700 Received: from Dell640-transport-1.sclab.marvell.com (unknown [10.106.48.36]) by maili.marvell.com (Postfix) with ESMTP id 78A773F706B; Thu, 26 Jun 2025 05:24:53 -0700 (PDT) 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=93DsU75GNxQFAnfZw+KjtTj XvdDdy4FE9C09G2xNI1M=; b=VRaatanbzinPFNdqGIOazs4NuWchOKpyceYpDDc DfN4LQ/wrBKC//h1R9S/gmh0fXAkfkqMZccVRmIj/x5bIqeOH/WNvkHsXk0NpQGs xej4JFN9AkE6M8JCGOyJaY1TErOT5yR6v4cqk8jGt8Ezb7M3hmyEfTA2VAxSFL2V 7WJLB/67mlZQ2IuAX0jut2R1XHiO4lbWOsnv2F2fLkb2d0ccBAip9cIQCSjBInLJ Hd+yvRJKg4u18bwIJ8xh3o/uMJIAmlORrp7CMmZSPLextKcKEJNO6BIcKunoDuNd P6nW3or6Te4vhHGFMTg4D09V8ca8wPb0HnSFI/oG6TTzBsQ== From: Rajesh Mudimadugula To: CC: , , , Rajesh Mudimadugula Subject: [PATCH] vhost-user: enable asym capabilities for user backend Date: Thu, 26 Jun 2025 12:24:51 +0000 Message-ID: <20250626122451.908205-1-rmudimadugul@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=AZexH2XG c=1 sm=1 tr=0 ts=685d3c16 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=6IFa9wvqVegA:10 a=M5GUcnROAAAA:8 a=M0aHttIpEyw3PdpNef4A:9 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-GUID: d5MgdsZs4pXi7YAQTaYzL3_NA_bJ7L99 X-Proofpoint-ORIG-GUID: d5MgdsZs4pXi7YAQTaYzL3_NA_bJ7L99 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjI2MDEwNCBTYWx0ZWRfX8eTGhXlSW02b YD6tcAGwV4p0hrpsxDisriwObGUewr6OACIgTtDcOKBrOswXYj3QWQ49845lQRTKlV1aVgbkbdT NCrofrs5O5oEn3c89X4BBPm6cA0VXS2MKwFrPufW4wLkqbgBcn6DHvVWJG07o/idKhHh+ippX/o wUMjFIlCjTMyaZllSz8aWeU5ksx0Y2OqaO0qOBJSw5QfZ+gzr4JwanxUUHxKb3EQmfpcgDpquYU dJzQfUBywwQWyv6kNF6UaF1SKMBt4hKirnHP9Z5tLk4LXrUPCmIltqbYY/lcQ3Va8acsLq8X21o WE8ZM0eIhaac2+DjEH4XnUqGfBUHY2lM1C0SHpqL34DilLP/HCoccNEPguBSIeOYCVbwaErC/lz ldDWoUW4/QwwwwSQYGa8X/uDVHsCPW1aAiniyyn/q+CmycgfCkFV3owxqHiCrgTpJn8LJ8g4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-26_05,2025-06-26_02,2025-03-28_01 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=67.231.156.173; envelope-from=prvs=5272304780=rmudimadugul@marvell.com; helo=mx0b-0016f401.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 26 Jun 2025 08:47:25 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @marvell.com) X-ZM-MESSAGEID: 1750942114025116600 Content-Type: text/plain; charset="utf-8" This patch enables and advertises asym capabilties for backend user application. Signed-off-by: Rajesh Mudimadugula --- backends/cryptodev-vhost-user.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-use= r.c index cb04e68b02..f9dec14a4a 100644 --- a/backends/cryptodev-vhost-user.c +++ b/backends/cryptodev-vhost-user.c @@ -230,6 +230,9 @@ static void cryptodev_vhost_user_init( backend->conf.max_size =3D UINT64_MAX; backend->conf.max_cipher_key_len =3D VHOST_USER_MAX_CIPHER_KEY_LEN; backend->conf.max_auth_key_len =3D VHOST_USER_MAX_AUTH_KEY_LEN; + backend->conf.crypto_services |=3D + 1u << QCRYPTODEV_BACKEND_SERVICE_TYPE_AKCIPHER; + backend->conf.akcipher_algo =3D 1u << VIRTIO_CRYPTO_AKCIPHER_RSA; } =20 static int64_t cryptodev_vhost_user_crypto_create_session( --=20 2.34.1