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 10831606A6A1 for ; Fri, 4 Dec 2026 19:39:37 +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=v0Dbztxk; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=bBxJA6aV 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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=/V9le4ZMpUs33hM+HH9I61H2u34y7LjAEY0w0tWEomo=; b=v0Dbztxk0MQQDFC4t+3a55UCrJ oUMLrKAklbnT8IblZQZPFygvclJsSY8jRkGTfESCcPq9voJo8NyFSV6CYAf8i0zBbcR6AkrkDqAtd JDNtuyXszRT2GB2hVlQ4bildKx+TzjCAiuXP//SHSkSPAxwieZNJ6Iodqk/8V9qtNTa4dlLmUe2pO OK46vAXhtaj8rnXjnH2pjlWpUgPT4PUfCxRwg/YmY4qPEwA8z4ZttvB9bXaVNt+l8LYp7mEBEF30C UZ8sTNV3XiJJobpZFlpYmX32z/rGzlva/VY2UNlgknk2ub36ueyXRCuQ5vQkwYwhEHOKyB7kN+vc8 GNoaitQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZXeM-000000018V1-3TYQ; Fri, 04 Dec 2026 18:04:51 +0000 Received: from mail-dy1-x1330.google.com ([2607:f8b0:4864:20::1330]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZXeJ-000000018UR-0vUN for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 18:04:48 +0000 Received: by mail-dy1-x1330.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso2802931eec.0 for ; Fri, 04 Dec 2026 10:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1796407486; x=1797012286; darn=lists.infradead.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=/V9le4ZMpUs33hM+HH9I61H2u34y7LjAEY0w0tWEomo=; b=bBxJA6aVBcydXVCsCLEBF9pKAHnfwstboxPpvYdVbJXHVMfjZhUgMQ7dsX4CgfqbPi YR6hNpVcKjgRaBY3bAcu8+9XDhQH0D9/gg02ghLOXP47pM6gEAPeA69im8OZhKREjkxu 8PDuz4if5hSVsxuNTWlT4LSoaLf1nxs9Fi6ymeIw5AcV6qdTZYGKvZV8oQDdLrdiWgMo yr9QBKfVRe0WeuJefTPxXT7EsgVfdLjuf3jeY09vQA5GyGqgHQZf+0VR6vzzJtLn0uko ZLN/B99LZoe+FkoWAlbI0yylfwjHJRarXIXUM8xaLjYUfwJtkPFwpmslU9uMC+qcuRqP JW9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796407486; x=1797012286; 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=/V9le4ZMpUs33hM+HH9I61H2u34y7LjAEY0w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Cz+rFmrfi/1rQYxlHbnZTwI78Ypwu15goBwjImCdsiqOeP3oxQZDqHGT5zHVm8tr49agwd5IX 4EW4RRRHcLDrrkxVZSjCFlGln4oHIAjkjcZ6OILB8xkR/vVZLMEAcWSVgx89QY08BTOAcrarrpJ Z9emcan173r8A7fvBnufhAg= X-Received: by 2002:a05:693c:41d8:b0:387:4d80:eebf with SMTP id 5a478bee46e88-38751fc92a7mr2750584eec.5.1796407485857; Fri, 04 Dec 2026 10:04:45 -0800 (PST) Received: from ziepe.ca ([130.41.10.206]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-387521bdedbsm9915508eec.12.2026.12.04.10.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 10:04:45 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xZXeG-00000009rG9-0dgf; Fri, 04 Dec 2026 14:04:44 -0400 Date: Fri, 4 Dec 2026 14:04:44 -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: <20261204180444.GK1074888@ziepe.ca> References: <20261125081121.379481-1-aneesh.kumar@kernel.org> <20261125081121.379481-9-aneesh.kumar@kernel.org> <20261203160113.GF1074888@ziepe.ca> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_100447_270994_97C2BF07 X-CRM114-Status: GOOD ( 18.70 ) X-Spam-Score: -2.1 (--) 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=-6.3 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 On Fri, Dec 04, 2026 at 03:24:55AM +0000, Tian, Kevin wrote: > I didn't follow the attestation part closely, so may need more background > to better understand the open here. I vaguely remember you gave an idea > about returning a ctlv fd in vdev creation, but not sure whether you already > covered all your thoughts there. Yeah, that's a bit separate But you can imagine the system as a tunnel, 1) The host gets an attestation FD it reports SPDM information and the host accepts it 2) The VMM gets an attestation FD and it gives the same SPDM information and maybe a bit more, scoped to the VDEVICE, not the physical device. So collection actions on this FD (only) cause guest visible changes. 3) The guest guest an attestaion FD, and it shows the same information as #1, in the same way The attestation FD is reflecting standards based stuff, so it turns out all the vendors have or can align to it, in all three presentations. Then there are four attestation ops: Physical Guest prepare VERSION .. GET_DIGESTS TDISP LOCKED start KEY_EXCHANGE .. FINISH no change get evidence GET_MEASUREMENTS GET_MEASUREMENTS TDISP INTERFACE_REPORT accept Load IDE Keys TDISP RUN and the device trust sequence: trust=full bind pIOMMU to DMA DMA_ENABLE vIOMMU to DMA >From a user flow on the attestation FD the same code works on guest and host just as well. The goal of the secure world is to provide the fullest API surface and make it 1:1 between guest and host. I don't know how the VMM will relay the TDISP locked/run ops right now, but the guest/host side seems to be working out. > 'lock/unlock' sounds directly related to attestation, but I'm not sure > about 'run'. Is 'run' state triggering any specific action from attestation angle? For SPDM, to be general, we have this notion of 'accept' which means the userspace has looked at the connection and device then approved it. Upon approval the kernel does 'something' defined by the driver that created the SPDM attestation interface. So it is fine for Guest TSM to define its accept action as RUN This is also convient because the session binding from LOCKED -> RUN, that proves nothing unlocked it, is contained entirely with a single FD under a single cookie, which seems much more robust than what we had with sysfs.. Jason