From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796313676; b=aSQTNVaRAINfg2rLTyf68gbdF9uPBsbsEKJfZKgO0GHI1BymKdB4LCBGqeni2pheJXr6 kofyLMYwZF8UiQJWi61XQ9IrOLQDcUQQh3ZgSAiE8mp+ADs6UgAs9CC2aDTuNDSFwItec v0R5lhHalsftvcjeJh2dhjTKlExP0IiA3btmkhpGcsdD2FCr1RnuFRgrwxuT6uBZPaSjP N1mxztxyYkf4BEcnDGs9IeWaKP51VK1QoPGk/s0aRXeTowvHQO9NmWWnysdW6TgnwiyKp UL/nGkTMPN1yxIR08cVAGxjKaDNu+GHARM9XOZCqRUnaukfn3m29YqmXnai5+yXe6MQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796313676; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=3S/zpPUApwbuILIjgQ3aie4s6zd5369trZSHJdkkFws=; b=JuWCv3+PkM9B1MvH5NT1craiVf2y8/PIzaLjUjtVUQxpO5XEaoUdZ0kDgvk5QDe0iVRV 9FTGaW4qBz6aFSnXynyGBXENSvtx2T/IenZqraQELEK3YMYLhOzGz/MnNsclo484uRhtA zVwqzGjCgCOeIdpxkpRCM1M5/ocW0s5SpefuJn22DhVbBGusowg3XNLZHNHYAb8bI16kD hB7EogCduSvEXWqSkPDLkhuLTljswS3DHMm3UgxKWbqa7bceYPjUzSAhVqIrB8W0NBmy6 WySQ/Z8mgXMRh0h3xn0rJgKeOzi7+OLPalAlwCz9TzkyRLto5rxyBwe8kG0vCp+umxg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=WNBC8fDM; arc=none smtp.remote-ip=209.85.210.52 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20439606A332 for ; Thu, 3 Dec 2026 16:01:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 20439606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=WNBC8fDM Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-847ac7ccd85so3828a34.3 for ; Thu, 03 Dec 2026 08:01:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1796313675; x=1796918475; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=3S/zpPUApwbuILIjgQ3aie4s6zd5369trZSHJdkkFws=; b=WNBC8fDMWJmgMFJNy8TJQqCL0bQtufNwS4+y/FXVloyPyqjwGgZNG2P4LjeCm5nEKV 9M3QCyRXy4Dy4Jx1tFX2JmRqffWsYAAtseYiCfKvZrwNUJjtIbhe9HzPTNc+awPNl9+x ATWq6QuES7cM1ByWt2W3+RjNMw0yPe2wkml5MX8+pzfe7CGBnTSwJxFhGEOI/jkYOLN4 bp/wHgyqHXFMxD7NaBl7yKYnSlWI1TzavuT2fK/5N/28UB3EGY3Cs0RJX+2+QL3PT93C fhtsrbqrTzjy8PPbTaxl+puiqy+rHKTBHdoDlODdiPmXm9z6zC+dKP0+JzGBb4/FV6qj q5IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796313675; x=1796918475; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3S/zpPUApwbuILIjgQ3aie4s6zd5369trZSHJdkkFws=; b=NbNpgmpDJqYGnJOVskRmU7fcbbhHp/hL4mmpUMbOQ8G0B6ncq6l23myQZByP/Tw0ai /mvnhDrEaChYW3HrXNR0wKkeJ2h96LjevuTp7IKCPjyQC9Jn/MT4fcA6Bg14t/8B/Y7E rukEBid/VANk1LC6IWVA5OpBs2p/ehB7jmj0n3dm9Vw2JpxmvLQJOwIfgUK1cw+2Apha SJtNm7Uy+1geU/dOq4L85FNkdxWTpi9lJ8HiwOGUE/UKojR1+kivm3k7wWV7lB/Zw9hs cHRySfxdLdmPAUHOqLkC0ljbzcPUVr9Zx3RzsqgO1NK542NcvyDyS7woJ1Oq90HBgQR7 CXKA== X-Forwarded-Encrypted: i=1; AL+hErEpxYFX4+LQyKHjo/OJ7W5fhH0VzoxzoViC5Y7/YNukAXdSHjPrd2Eo94znEO9tSDezhwc1g8toV1Q=@vger.kernel.org X-Gm-Message-State: APuU4Z8RwYhGQohj0QPbiscq+5nZowP5H1HjOyTTOQKXFMz4E60e/df6 Q39/aQPSh5ibDY3ChOwhIgWMELDX52i7WIFd2vL4/DgtcbHdISjR7LhFmVWpQx6jTlo= X-Gm-Gg: AZFdTZeLYefeBBxC0MCNJlGusG0Zn/eIXO/UWuwuAJ1aeIvS6MqM02fOwQ9QWmgwSBx b9Y9LAP/KKBn+CLt4kLk4qHuATC3VhajSVT03Ezm6ckH1Cj5yQq95UMMj2e+XZrNXw6yp2x2Wg2 ew+FSMJn2P5eZWBwgy9Tr2PJ4kQtRn9aty7xwGvx88CARDBKXWDhCnz6HiFYKj1erk5IH2A4MY/ 4vIVPoxe3E7pi9Cd+snmuLEwR2mK5w5IQyqrDF8zVCoLjPmoHINR0OEVoBRniS2o72ON9iCTFr7 ghe48GohBlK8tcIsD8nzo2uYf3XtgN0M68ZWrN2s86KcgfKcb7KawZ2Ycw33pYH+etWTDX5av7V 8iaZwsm/2Kzbq5QNiqaqnZPEL4SOFPbQygPLeIssyL2B4iVuoRNvdyyGIcFusDABwr5wJ9E2FuW uX27cQVjpmg9DSkbyXO+tqw4LDczMIbZ808ws1WcbGFW89wp0e0sJYjTc9oQHg68u4oxgQwIk3S KaaZWE2zmkqadExnOAQID4szvPK/MHWsSwIJZmlWMWcbwJoVcGE6KbYsByrKiR8P3kXE03c0f4n 8n+4 X-Received: by 2002:a05:6830:6814:b0:862:e9e6:6297 with SMTP id 46e09a7af769-86315985934mr50025478a34.18.1796313675042; Thu, 03 Dec 2026 08:01:15 -0800 (PST) Received: from ziepe.ca ([140.209.225.78]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-863168dd6besm32223863a34.11.2026.12.03.08.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 08:01:14 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xZ9FB-00000006o79-0NqF; Thu, 03 Dec 2026 12:01:13 -0400 Date: Thu, 3 Dec 2026 12:01:13 -0400 From: Jason Gunthorpe To: "Tian, Kevin" Cc: "Aneesh Kumar K.V" , "linux-coco@lists.linux.dev" , Alex Williamson , Alexey Kardashevskiy , Bjorn Helgaas , Catalin Marinas , Jacob Pan , 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 Message-ID: <20261203160113.GF1074888@ziepe.ca> References: <20261125081121.379481-1-aneesh.kumar@kernel.org> <20261125081121.379481-9-aneesh.kumar@kernel.org> X-Mailing-List: linux-pci@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; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 03, 2026 at 08:25:43AM +0000, Tian, Kevin wrote: > > From: Aneesh Kumar K.V > > Sent: Thursday, December 3, 2026 4:17 PM > > > > "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. > > > > this series is in-progress so nothing can be considered ready. IMHO > including it helps understand the overall picture. You can add a note > that the actual definition is not finalized. We need to make a choice if SET_TDISP_STATE is an attestation op or a viommu op. Anyone have thoughts on that? >From a guest perspective I am thinking it will be an attestaion op integrated into the standard SPDM workflow so guest and host have an identical SPDM uAPI flow to accept a device. Jason