From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.67 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796070348; b=pE6Yp/mqG97v+YZMvk8rGRgw8dlhHjzEkZ4JQYfZ8/k0XHgi6+mWXsucie8BRVeqhRdE Sc/5wWPtOEzf0OZFxfunNCMuMZftwktmG3wy9awjkwU99omRi18F1fVmv04wt2mizq1oI f7jkZQ24WM0T7Q/YY2j+yhqTMQPbwIFqB7XECtnlJXvrYLIiibyvADqahFoKWR4cfY1aR oG5s9gNdE5xGrWC2V3VtkKKyQLtpmuU2zlDEYHcIw8fTnZOpIEpdzL8javtWDtIuy0MKK dTopntItd5yUktr+aJIygvY1+Jw2rf8SCLD4McjLuwGahKxyuJIwRHSYI30c9psYmfA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796070348; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:Content-Type:Content-Disposition: In-Reply-To:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=lFFmjc3hxo4f2+idYFAHk0OODgPlnsxhkYs3DPLG0fI=; b=bSmGlf+astNAzCpQQxJaBKuFWjnlfnZcAYddqb/jiMnzEmIxSTdgD8zxqNuTMwQIFxf1 Ctqmc0yllH3E6ey8ufMifRfurq8WwaQhQWDFuyPDs0BdCKH9I+eoeQZob8prWu8p9CdUG M0qZblYoV48pvDzsF3vF3WQi4XAsopA/O8Qf/mPAn5DzRKXuHpDDCPaqQfUm1XOzCs7Ef gsEkInDL6QKbW9e79xBg7dPzToXNp+cZ4gQtYT2YA2VsCXpvXVDk+MT0vC6cdNHuFHHDb 77HFw5bd3gyXu9oDEHFXd3sJKjg5pM3oDpe4TDHZLiw7s92p9k9nbli7Cq722mM2J7w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=E0shC6iS; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.67 Received: from BN8PR05CU002.outbound.protection.outlook.com (mail-eastus2azon11011067.outbound.protection.outlook.com [52.101.57.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B54CE606A31A; Mon, 30 Nov 2026 20:25:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B54CE606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=E0shC6iS ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hcXUmeUSOLujw19IXXt7bkSSHKgS/Jt2yToJu0CWPGjOPxj1lzr5aIxxv3CYT5QBqv+XoKAyuiSu954c5O0TFusu63j50/agasxO+y3u3PhP8h75h2L+C37weV6mbHJPCmDPGg5zNM/ygdHcuRl3tC3BCm66ptXjigX+7tk35uGELOkv/7iqcDd5nZpT0xVgfI2V5wYktbkMdV1k3nrmrx/YRT61S4tOP/uVfmDjXVOluBHqbT1t6VizwZGDDDT9W3vXAMvZvfuByXF/Ri0uwgu+D7je5XkcTpd68apPa3AN1viA3gcZIXr2TEozO9bdKhgNG6F6/dzJJ69qAOyADQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lFFmjc3hxo4f2+idYFAHk0OODgPlnsxhkYs3DPLG0fI=; b=FZMKweosxKcUhj3/uHv7GRL2qPZVPcpnSoM1rQMTKuSvNHCTHzf3S2vyfHRD/vCML30oUiLILIZB4GUyXv+Jiab02lmepNlOCxGTUWX6T5YXnnsLHC3RGoA/ErO4g2li1L2rkDRmPmE1vhsaWPHwR2gG2gywBM/lRuKm6Bi9vXJYuBMQn7jcwPE8YiAGl/IrsNusmSEzFjCTws8cKn235YvAjktGvBLa9Aatq12VD1SeYW9dkBF4LrVSwU0RbTg3/zH2snzeAfpfJNpPHfnM5cvOZGgcWWC6eqxVrBdBvlMI3MMYK3vxwrJ4sl8MuUEDYqaTFws1LKND6hvDpivibA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lFFmjc3hxo4f2+idYFAHk0OODgPlnsxhkYs3DPLG0fI=; b=E0shC6iStH1bPdYpVOdIbhrG34GghJvssiD3Y7YJN+vw/zQe5LAeJ3wQBDiKvGffwdrqGcZMjU5gPOQxjTcEhe4g/LZV+ASqFxkZQt7h+0WY4mStOxYjb1qUECDNzwM/Umy0uqtvXf8E7R7iqccEoVSSoGKoc5ODuTaKZd6DPrzptbGakXK98Whmtx6va2yeL80KrGgcpCCh6+7cDyoi1siFBXEMmwKjanB2cZdXhFhv9TOEPRgTEQuXk7V6YuIYZoIex5SSP7GpQC9Nmv+C5uJw7gc3hXlZDgaOozNMh0qpk6Lk3ChTcEzSWX+mnwcL0g0eJFXa7qwu2TSwRzffkA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CHBPR12MB731189.namprd12.prod.outlook.com (2603:10b6:610:33d::12) by DS2PR12MB127457.namprd12.prod.outlook.com (2603:10b6:8:4df::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Mon, 30 Nov 2026 20:25:40 +0000 Received: from CHBPR12MB731189.namprd12.prod.outlook.com ([fe80::b0e5:123d:fe06:e10d]) by CHBPR12MB731189.namprd12.prod.outlook.com ([fe80::b0e5:123d:fe06:e10d%6]) with mapi id 15.21.0662.012; Mon, 30 Nov 2026 20:25:40 +0000 Date: Mon, 30 Nov 2026 16:25:39 -0400 From: Jason Gunthorpe To: Jiri Pirko Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, drdeeglaze@gmail.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com, jarkko@kernel.org, zohar@linux.ibm.com, yeoreum.yun@arm.com, aneesh.kumar@kernel.org, dave.jiang@intel.com, nik.borisov@suse.com, sergii.dmytruk@3mdeb.com Subject: Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files Message-ID: <20261130202539.GA114472@nvidia.com> References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: YT4PR01CA0252.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10f::24) To CHBPR12MB731189.namprd12.prod.outlook.com (2603:10b6:610:33d::12) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CHBPR12MB731189:EE_|DS2PR12MB127457:EE_ X-MS-Office365-Filtering-Correlation-Id: 13d40b9a-fc9d-4c9f-94fa-08df4f201a12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|23010399003|376014|7416014|10067099003|56012099006|260925021911599003|260925022911599003|260925021311599003|261026121527099003|261026140227099003|261028144727099003|261021135927099003|261022105027099003|261022075727099003|22082099003|18002099003|11063799006|4143699003|261009223027099003; X-Microsoft-Antispam-Message-Info: eaJTh6sFL3JXUxi8eW5ulzByUi2RZN8QTMIdyzHbOaeRNE7bUC9Ds3yS8YRjMLD9sltS6KW7bfN6aK9e3HNREONGcLVO4QGGoCXGwQ6HACvlRhwvtGhhYS4HbGEM8URDuQE3kbmV4gSQI3jokgTz0hnI+eqRgjrZlth+rSQWmFH9r0a+tKx30CDLcJnt0ECEV6AKIRuUkuc9XreXEVmd7FUmMfGA4WrO92wtN+oVc0GL/01dJ4MrGbJKpJ/nT/HlB5g/upIABWqm3uIn9+t7AGD79SefKg4pHmbuuqr5OZdjxUV/oxmc/sQC+uawCH5veLKzKzlgBMeX79EVMbCanCoa10/I/2K1/9VgP4BucM/mDeBnL26mJ/hzkH6pGjWkGgKTKtuDrjtBCB8M2AwP/HFRMNq6nKmU+FPYCNmtJekI6k1dKOK0rjuXps2nBpQB9ffnh1knf59Iga3wxBW73pqK0UjH+/y6wsDKnQlOsV8oZwnlCRVXH36k62d4tOUEyt6iqVdwQnWcaDAzyb5w6seoLc9WVYGU2//DY5bAenHQXU+t04JtgTrKOpLFXGbG9oWiCd8IKLQODmEKHAaCtj4tP+AG90xMOyPuHBe2f6OjM/DqVdBHz/yVOCpnHksEzp11a/DE0foQe3Sg45cHuNlmmwjIcUcKLe8SxZLgFBM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CHBPR12MB731189.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(23010399003)(376014)(7416014)(10067099003)(56012099006)(260925021911599003)(260925022911599003)(260925021311599003)(261026121527099003)(261026140227099003)(261028144727099003)(261021135927099003)(261022105027099003)(261022075727099003)(22082099003)(18002099003)(11063799006)(4143699003)(261009223027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DuDkyxot5b3y4vsKpdjVBqD39AuiVMh9HngK9KqGD+Dme1F09n8hussOXc45?= =?us-ascii?Q?rJdzoi/NU9ZAn20nI7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s7?= =?us-ascii?Q?XMFcSapJimyF3+7vl6cbvu1fEjLjmXkKmOLJao05b5S2YOGTSnjIpc7ghcig?= =?us-ascii?Q?TzqhD6duKTBOiDSemCPSvfyyDj5jWw4BiRnkMbo+6TEFVpY1OqkgLJMh6Qh7?= =?us-ascii?Q?qxtWGiydvGebnwVu61EvVLdM6APzbOckMoPE8JPNniaufNR0QLgSWNAIz110?= =?us-ascii?Q?LO2nfMxr294TsHg4G6NDGEnsGmF28i6oN74rJOThf8HDreLP2F10Ap78dczB?= =?us-ascii?Q?nmHdJYuvIXv7TrpXtRLkrRatGL0gUkljIo5gzqBbggY2uPwcoKG++jNIvUg0?= =?us-ascii?Q?kDywEblsEoti6u+fbrVNse9yMZ7fotg/Mc67qMIOLiNj6agVfUJSS+egVRM2?= =?us-ascii?Q?B43hqWs6ndnwyOHsyKnmSkmfFrnRR35wxOO8C3mUzlGnjnpK21MeWLms0hiA?= =?us-ascii?Q?uAJrEYXzsAp+RD5lBbPU4ZpPTqh1f6bYvXwC0gbJQoRIEI/mW57GKPMQh+ZU?= =?us-ascii?Q?S3xZ+RNBGsZLR/P7ZM4mgBglLy6TRK8a7RpPf0NL1BX7YnYQWdBlPWXgbnwR?= =?us-ascii?Q?IYrFSz2NlGWg+guwg//CaIFuGUbP8/gLBx9HRn9rU+jqv1DVwPK+GIgsOScY?= =?us-ascii?Q?g3MadNRDAleR96HIDhvHjevea7lvhWiKgljw/xz8+8x0yvd64unDHLQ4cMxk?= =?us-ascii?Q?rYkv9NZ8fIw5tmFNdn/86yR+64SYrTeri8bmTAGvCb+OvopR9rKE8FO1YlKF?= =?us-ascii?Q?ZXkyosbB6wTiMogRstJHVrQcZips0BxJVPdZsNPOXbcZnn2x?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13d40b9a-fc9d-4c9f-94fa-08df4f201a12 X-MS-Exchange-CrossTenant-AuthSource: CHBPR12MB731189.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 20:25:40.6338 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5xBx8RB87gN/XR8PRuFtwn6+RR5vLXr5FArxFRu93P7amdDZft7YG+Yphj869AC5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS2PR12MB127457 On Fri, Nov 27, 2026 at 01:54:49PM +0100, Jiri Pirko wrote: > >> + # A layout of an evidence object that one vendor defines, given by the > >> + # device's family. > >> + evidence-vendor-format: extension > > > >I find this 'standard' 'vendor' distinction confusing. Is this an > >artifact of the compilation process? > > > >This would be more usable if there was one enum but both this yaml and > >the driver yaml can contribute values to it. If we made an 'extendable > >enum' then the values could be full 64 bit ID numbers with the tree > >coding so that the extension works the same way as a op and record? > > > >Though I'm a bit nervous about what happens if something in a driver > >turns into a standard. It would be nice to be able to make the > >driver's ID promoted to a global ID without changing the ID. That > >sounds like something the generator could learn to do later I guess. > > I see your point. Bit if we have 64bit enum value what included the > family id, we still have per-family namespace of enum values. Hard to > "promote to global id". We would have to have one range of enum values, > some of which would be driver, some global. How exactly you see this > happening? I would just do the dumb simple thing, if we put something in a driver and realise later it was really global, then have some syntax like xx: - new_global = 0x1212342345 Where the hex is the exact value in use by the driver, and the driver continues to have its enum unchanged to hold the value and keep source compatibility. This would be something used only rarely and to correct mistakes so I view it as OK if it is a bit messy. > >The comment should be improved to define what consitutes a 'format'. I > >was advocating that the format should define enough to check the > >signature and the challenge universally. > > > >Like Peter described the new TDX evidence as "tdx-quote-eat-cwt-1.0". > > > >Poking at the IETF RFCs with AI a bit I think it should be described > >as "CWT EAT" in this language. The EAT RFC defines the location of the > >challenge and uses the CWT packaging which defines how the signature > >is placed. > > > >I think ARM uses this format too, IDK what AMD uses. > > > >The EAT itself should have information inside that describes the > >"tdx-quote-1.0" idea, so we don't need it externally. > > Perhaps we need 2 attributes, "evidence-packaging" and > "evidence-format"? This is a bit unclear to me to be honest. I think for now we can just have the packaging, the "CWT EAT". It is supposed to be self describing so userspace should be able to understand what it is after looking inside it. > >I wonder if it would be wise to put a bit more syntax here: > > supported-hash-algorithms[num_entries(hash-algo)]: hash-algo > > > >Just to be clear about exactly what is being extracted from > >hash_algo.. It is the total number of entries, not the maximum value > >or something else. > > I already have this changed in my work tree as: > "supported-hash-algorithms[enum hash-algo]: enum hash-algo". I think it > is enough, what do you think? I still look at it and wonder what value is inside the [], max value or total number? Here we want total number The enum is certainly helpful though Jason