From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB825606A32F for ; Thu, 3 Dec 2026 08:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=e9/p0oOD; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VQaf/lL6 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=3wr9ncCLJbjppuFdP/F5Eze8NF5jQr02HmPgHDy7m1o=; b=e9/p0oODQxAM28xb5ihdsb8DAE /pAb0YogA9Yujvi6rUnWBDXTe3wTgJDuXNA/McfxV/Aiiwm/ofEK8g3FLsr/QQrOjGqc81dCdcZWw wdmNuSF56kt3UyFYiirGh0VsjuMMO9nm75Vy30DR5zRaR0aB6vfvzj8jM4ZUVDdQvSnidQ2bWCwwb 6/WR6snFl2MjmmnqqREvHjvOVS5irtucifpHG/YO6D3+wqXESw93vFmb38ZTgqNb08tf/QJf/XezX O4RlW91ZQwg0Q3aBJoiaW3ETqf7smppDSocPCUZIF5Z4CIxm0BS1iN0ieX1kOpBv8202RyQHX+p7d Hmtzjqww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ20E-0000000DofI-2daZ; Thu, 03 Dec 2026 08:17:18 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ20D-0000000Dof3-2QGw for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 08:17:17 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id B05BF6213F; Thu, 3 Dec 2026 08:17:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 100991F00899; Thu, 3 Dec 2026 08:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796285836; bh=3wr9ncCLJbjppuFdP/F5Eze8NF5jQr02HmPgHDy7m1o=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=VQaf/lL6jADeyU/h6TiSQyoeTJ1OCZQYhmiaDoQ/Na1wp7q3h3mbi5kSHByayWXGC tStOfW4ntRSWIGJUIkdGnLO/HyquRJ8bdq90guKbQ0KVlHMOKzgdnqYI/kM6jgMXSu rFzI699xv3YwKVmJsW6Z/3XXnZrAHBfejGX4pWSTGxDQWW7LFk4cfc2WxtEge9vE/0 HxeHPIr4RrsUp6zrf9EEgll/ZXT8gAPkdXE8j0xag/X8ezQwrDYIj52b5tFWv7lq/t JWArYLBuBNOQZoTVJIz2cv0bghrEkUC5uJKrYF2pG23HcGMtwbdp34hUf50y+raAb7 RkgxjA0vJ0jkw== X-Mailer: emacs 31.1 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: "Tian, Kevin" , "linux-coco@lists.linux.dev" Cc: Alex Williamson , Alexey Kardashevskiy , Bjorn Helgaas , Catalin Marinas , Jacob Pan , Jason Gunthorpe , Joerg Roedel , Jonathan Cameron , Jonathan Hunter , Krishna Reddy , Lukas Wunner , Nicolin Chen , Robin Murphy , Samuel Ortiz , Shameer Kolothum , Steven Price , Suravee Suthikulpanit , Suzuki K Poulose , Thierry Reding , Vasant Hegde , Will Deacon , Xu Yilun , Ashish Kalra , Herbert Xu , Jonathan Cameron , Tom Lendacky , "kvm@vger.kernel.org" , "iommu@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-pci@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "patches@lists.linux.dev" , Lu Baolu Subject: RE: [PATCH v10 08/18] iommufd: Add a vDEVICE operation ioctl framework In-Reply-To: References: <20261125081121.379481-1-aneesh.kumar@kernel.org> <20261125081121.379481-9-aneesh.kumar@kernel.org> Date: Thu, 03 Dec 2026 13:47:03 +0530 Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 "Tian, Kevin" writes: >> From: Aneesh Kumar K.V (Arm) >> Sent: Wednesday, November 25, 2026 4:11 PM >> >> Add IOMMU_VDEVICE_OP to execute operations on a vDEVICE using >> separate >> request and response buffers. Each operation defines its request and >> response formats, with response capacity checked before changing device >> state. >> >> Look up the vDEVICE and check its supported_ops mask before dispatching >> an operation. Reject out-of-range operation numbers before testing the >> corresponding bit. Backends set the mask during vdevice_init(). >> >> This patch defines no operations. The default dispatch returns >> -EOPNOTSUPP; later patches can add operations independently. >> > > Given this is a tsm series, it'd be clearer to include related ops definition > (e.g. IOMMU_VDEVICE_OP_SET_TDISP_STATE) in this series instead of > leaving it to be dig out from your cca repo. The conclusion was that the required set of operations is still unclear. We initially had multiple operations to read or regenerate different SPDM objects. After switching to an attestation-based interface, the CCA series now has: enum iommu_vdevice_ops { IOMMU_VDEVICE_OP_SET_TDISP_STATE = 0, IOMMU_VDEVICE_OP_GET_ATTESTATION_FD = 1, }; This was not included in the series to keep the interface open until the TDX and TIO implementations help finalize the operations list. -aneesh