From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796285836; b=fItJXiSdiKUuUP9vb+8LX34XozHSqT/vqLICDokvu2el6EMx0w8DeS6SnBIJfXjlChQK PobaAbN/PZ20wC6i4hEudEAfPSG4M/o4SB+cjR740xgd5NPcX8R8FTBbyxT1qUUqfN3cj be2K7c0kM3aZRUrZleKPLwmra8OoCzQbQRLXgLQ0DV/OLzN+NzzKFr4pvwVpAi5cfPlwn t/iEb0KOaHJQ6Pm8KhOoe8YjpdHtw2lxQEF6FZw4prCVYjmzY6hmoj/U0jLymCUZsoa9S p9PUWnUcDjNXMCxZmlDHiBzN9afLNJZmhTW58eFiATNESbBazheqoSqW20DVc8afZyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796285836; h=Received:DKIM-Signature:X-Mailer:From:To:Cc:Subject:In-Reply-To: References:Date:Message-ID:MIME-Version:Content-Type; bh=3wr9ncCLJbjppuFdP/F5Eze8NF5jQr02HmPgHDy7m1o=; b=mkYDBYzvBNkC4dfvolxhCF9pwUKNjsVtJHj4hcexBX+ZtiUsFvrbkwlS0B7y5tKdZvYo GhBMdIyr5AvrCno54AyzUywHEm8e6lAHyTtZT+Ak+4csZsBwevHVonv8/Cf67NG7slGXf IE4qSB/ZXUfyqP7CNCC6A5Ziv4ZnhiUE5TyPQ4Sly3WcCP5N2hl08pvhMHpuNikf566IJ L4mZkiEB+0fpoAMzTK9QBz4j0F/kshJ5doebO/jL38+29E3pcL6p9qS5xld4f7vD5hgTs V8/fFSZtWdUyNAfCro5nUjSsji3TqqdcO5dNntiUJU0xS+9i3aR9JjZuBtfT4YPtkBg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="VQaf/lL6"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2BA6606A338; Thu, 3 Dec 2026 08:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VQaf/lL6 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-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain "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