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 EA716606A32C for ; Thu, 3 Dec 2026 16:01: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=foNtxcKy; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=bcjuGUm0 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=3S/zpPUApwbuILIjgQ3aie4s6zd5369trZSHJdkkFws=; b=foNtxcKyoY47lOdXOqhjL+wU61 Pp/fnDl5rXtnUVr6yNE/kufdxy6eFvaZOfCiqfvtoTSETbWcPqQOVlb/FKHI6mP50bysGQDDmc2v/ XmIgdi8zvsrWFUiHyHBHXvufxAQDSD2oeaoCC2IR3yrE+HNAsYbI+TLLiU7j1NXLziFnChxwKPWb8 kmOJK8K0BxnLJoEAaMfW2MmoR3SntsVQ5QYeVaDl8WqXA4VLenkp73rztGMlZ7P8+DmaQ+2cDa33K ppcBCX+SrH/cM4dlZl7StAmdhBmL3BJEJyo7WsQ3qmSVlNGp0OyQDH02KS3nDc5TSXtSPRoJGWuxg tbah8UoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ9FG-0000000FDyr-2ZtW; Thu, 03 Dec 2026 16:01:18 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ9FE-0000000FDyT-09GC for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 16:01:17 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-84a248254f4so16244a34.0 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=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=3S/zpPUApwbuILIjgQ3aie4s6zd5369trZSHJdkkFws=; b=bcjuGUm0l7POMa/zLpKQThEb6V1lpIvgmGsXAsj172GHg3QHtMBEg2yuOMdfhDN0zx tgegdSjq1f2zFZ66z4+Cedm9x0Qb03SCsNyFdNiOlk0jG+RgDwK9fV5Ri1Ol2KLhy3K2 bs/SBiuIB0DqNTYuuiBQGgBktftVelY1uSXLWB6fn4MaZPAcr64kTcWZ+V574I0rAe0E P9576PUFqNHQrDy0Az62JhLZAiRsExKCWl/xRHCqRh3WWp6JANKSvAMD2n3bK0WByOxZ CKbqu/bPoMDyCnwQ/BiKBGC7zhoEGeiSDxCDlOynpYfjmkLw/+jI+oGskCRXBvJ8o27S msQw== 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=;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VN/6A+fQb7oo0Qq5eDbBpziPW68uiIYQNCHvJJLSFqh74IqjCErftth33kJPT2 L9CzXAWD6HwU8A/US2AnPM5M/SkS9pd0fidZAc0vNj8oSIM/7fzsBOETGum8VTi1Q/fMhDg+12u xj9S 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-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-20261203_080116_098236_D8A12A73 X-CRM114-Status: GOOD ( 24.69 ) 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=-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 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