From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220127; b=X/gFJkG2gXVCdw+Hx/9wzS3PVbMv5NyPmKVpcbjpsWZknZtXrfcTKDfzFh9sOFiVwZAh 6KBhf4gJ/oVe6nAwa5Z4ptRhxZbD1v/A+YQq7vZCP1a7DFO3qsHOOh8QDVMJyxss7Jaj1 UXLMbjKWc8D5lopO7o0d6FhodYPUYBWeV4ozfRhgy/XTAZqRW1UVMSWMHqH4OqpggCAID 6dUVUMYelTKMKPVZdc6FyRylF4RNiwmPhWgxi8jgSsUYQaRRnuLlxUvJ0Lacv560FyR3W 9ykP/DPT8yd0T7XCqeFehLYwrr4OFMTKo/j2nhTmZh1N4w53sFG/x7Y7HyDHeac/NLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220127; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=dm6gXyc2EJyn60UGRNSvzoAn9rXyrP3f056RacPtqBw=; b=PdBCbBWb8I438pgf034xgiNB7VknSc5m/jY52dvpEzFB0UkG87gUgBOkoU4BhHZzBMz8 Bh5SsVWUL8nhjvxqmZ64zoq7t/gYgWfb+pfLjfVC52pinjXIktSWgkEatRm4DSd7A8GTD TkyZ5aKuMA7Vng7CIJBFj1z6fHmKkrVkk0b31cufZToKO0FexPfzyGkttcp2Eqip0y5c3 P7FEf6BkVlB2akrfhXVEq7t0qFHEAbWykC4ZkoVtbFiSe7Bl0ADPmtEQ9aX1KA/CWrEp6 YkJmyFQ3iyfCHSM5r0tRPSO8UE7Ie8xced+c9xZ5xYXkjylZRHVsE32aWulGifs9c7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=e0+O9W9L; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 C8BDD606A338 for ; Wed, 2 Dec 2026 14:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8BDD606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=e0+O9W9L Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4ba013938d7so122026015e9.2 for ; Wed, 02 Dec 2026 06:02:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796220124; x=1796824924; 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=dm6gXyc2EJyn60UGRNSvzoAn9rXyrP3f056RacPtqBw=; b=e0+O9W9LqybAn04HgsPQG08zxTiUAahX75owxKJveAQ33a4ysisuk3Vhpc1clDuLw5 MLRoTC9W+SkWrAG8gh8RmB1OCeW31vKkDQtmdFDMtkH8zqXnzWVgFWn2nXtW96qvYO96 EB7BdlIRwWSAbLyUpcltlzsQkxnW/TYmhlG/fCoN5jJCQNDeM1sSkWM4HTC4PlVql8vM YQChWst/N+WivlGWLiIyczI6iFcGscV18UV4fNM81ZlEFfV5+ArPeNpLEWdAs2vTmCZY YdOiq1vVeX4lJ9BJJrsx6boOf45Z9UuxTgDyux+MTRlwP7OTClR4XuIHyqbdy+gcsOJL 6v6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796220124; x=1796824924; 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=dm6gXyc2EJyn60UGRNSvzoAn9rXyrP3f056RacPtqBw=; b=qXd7rqnTBY1ElwN9LZ5bNWHnDtQA3Mcjniv1gSw4R8k5BBfNEP5nbWlP4TkeApzRfL m7ClL3lFpFPTkbE2Z1y4R/o47oEYwN42TzgorNKcBQxvKtAvPYAFIdyFyOsiEXcXDAaJ Zc0sjDp2pWQraQhrj7ZGT1h/7MWHGrHrQlLz3LXvSBlkWBosKQDBBUEsvIO7xCWAZFCZ HogFgcowRUGTVwoQH/DL3EfTIwopho8OqIg78PMNQPAEMIjLtAaepkbPE154FzixDYL0 3nynEk7Zyyfo2yU4B0WenqMneYiP88JzXLkFR/oM2XFcdgK/CdGd3NSvUSrgjOqnKv2B la9g== X-Forwarded-Encrypted: i=1; AL+hErHQPPvoTIoj58NOYrVSR/3TbUgsNn2JH2GnM25hzwns9/CB1BmxZoH71jDOPoemn+ghmhGXT+kIm4M=@vger.kernel.org X-Gm-Message-State: APuU4Z9zRvTEU+QzCMp0OrGFamb9JwPgR7YQ344mZgBUThytbVG8ve+E 3LwrrelpXnwNaaw752hcC+vKPpDkg14NQ3o8jj46kQ8E2544nyiXfzeai+p/Zu1DZHo= X-Gm-Gg: AZFdTZdz4h91yWHF67zkFLJB/s0F8tit9isS1SsK3RQksBnXI2084ANucW0Ea91iQKF ZaYcTQwjJI/CtoPVdfOMQdUN6BnAzfSih1TJeufLBZUAahNQmut6QMcU5AHqGd0sHk3TJ4hpWZE H3k1QSDbmFNC1SwSTa9fblJpFUfgh9V0P4bI/DkvYPhclf0P8gaOcmLjJ1PnYBb/e8vITRX+ZHE xu/C3PTGWLkN5Kf2rotx7NTyxH7oQj9Vz9Wrt0pXTriTInKfL973tdzimuP4vRGNkNLWIgQfZJ8 KwLMg0n9KeWloWDtFMSlzTDE0iTpg9ggTdBsgrjx+tBMWt/WS8BSGG+ikVmuwHpIfViizXLUFT9 2nkGT0x/G4hNTAFsZiQuK6eAsruHPU0yBp0jRydGVjEju7XWFbjYw7ZDDB8/C2Sp1Sb3C7PBDn5 6yaKX3GsBqjLuTqppb541wgJTc7aPqzoaWhTbtLfd2hjjKWKW5MNeouS0GYsSoecTNUz3jDHmRT wDC075BHRXO9cmZnESMLzVifF11E128/nT/DB82Jl5miAmnuJ1pgFRy7Fv9sveeW/Q1CrwXlFrb c8AX/sVPsuQGmuHUHxzpxYSGh9WGftCh0A3C X-Received: by 2002:a05:600c:64c9:b0:4bb:679a:86ee with SMTP id 5b1f17b1804b1-4bb88938dbemr781581665e9.29.1796220123747; Wed, 02 Dec 2026 06:02:03 -0800 (PST) Received: from localhost ([128.77.52.125]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67fe75sm89072368f8f.24.2026.12.02.06.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 06:02:03 -0800 (PST) Date: Wed, 2 Dec 2026 15:01:58 +0100 From: Jiri Pirko To: Jason Gunthorpe 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: References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> <20261130202539.GA114472@nvidia.com> X-Mailing-List: linux-api@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: <20261130202539.GA114472@nvidia.com> Mon, Nov 30, 2026 at 09:25:39PM +0100, jgg@nvidia.com wrote: >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 Ugh, hate this... Will try to figure something else up. > >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. Okay. > >> >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 the docs define it as "up to once per value of the enum". So it is the number of values,n ever the highest one.