From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220127; b=HaLLXpneh6SBuVECYDKfnlCE12IIBpsE59qS5GJ4CFLjdBO2W/+YyEXIiznxicg0B983 EdruGPdXI9qi1qn9ZKw2jz1WSTV5y/1wTfKL4NYku/gPbQvAexmiQFlGQhpw/z8UTKcjp vawRmdL4aUpXiN6E5+pOAjpVx6xZL93po9UAVkmc9ZSkEkswcp+c49D2PhO9SapQjgTLy E0q1FFOnIhShvnfIoXRJ+dBdq+tmI1fzrktGqijSUR9DqGuf+6pC6ochywzKyzjRFX5Ay 2WITbXSXJ+PGabkhBCo57LXuZ//8NI3YhN4VyLN93h/B/zn/9jqTVtaqM/vRFuv5S6g== 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-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=s7T71+3l9IsjtmiQNseDpwX2KNlAWLRTSMLoVt8MTZ2V79THtTjw+FoUO1tlbISKCT2z D20mjwXeckjp03CwX6hNOm7kZO03rZ7+qdhJMiSJmoY+b7vvAfRlvKuoDhwlXpMXMgJzE vTFMdE16dRGpXTzLvWkWu+IJNKV+YKTzry1KlQVcFzp6wxTRjn+6sxDqCA0zYg0nFEKjj GNhRoSFOqduLsw0LxJPnTtgKol8PWTgdgzxHYbmVGLjZXU6MA7izq1bjWd4K6X4DMIy4+ N9k/ufHt2OluTC3b/tmFDLou+dd23mw80Ln2mNHy/aD8q9LpERPgAGpoLj3Zf+aAFNg== 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="kz/GTWRM"; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 D5626606A33C for ; Wed, 2 Dec 2026 14:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5626606A33C 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=kz/GTWRM Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a214c5c4c0so124870815e9.3 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=lists.linux.dev; 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=kz/GTWRMGb9AAMIp207/g+cc89U/mDK/Gi7Eovl87AlKeKClBjImz6+W0G5s8XjXR2 ucOVcPInbtjvQXJ1hK1+S1I0AlEk+JsuJ1knp6KN5aM3Yg1qg3H4K7L62XR2JfW6VvFT 8CBprs11Hq4mVNTZ3PD803gbbQ+402JEHtgtHimf/gQevmLntD9i9vuohPVIifsBGoL7 NJcS7n66u0WrxP408wh8G8Va7AOHuBeqqg8iyGI/4o7c2GF7d1C37J9y9YRKJEwZWmsM W9yutafKn8uwcYKcVvkvZsozVtUKKWtL95mJmsb0dUCHumCYl4Q+frQ79efupxWLS64d 55qg== 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=pHl2rkJIQpYkAbfgbDzmnzPnRdgL33NXIUT+PxfR23faMOMtlqwlYTHVlaK5nu8T8b xqlVFkaiFHsGUQH78rvcHHHGD4GzFZvO4iSD1Zv4mGpPtIh4gAkd3En3LpPcqPljKU3y Oi1S1t0YROGpcMzIlv+yZJaQeBzv+VPtQBXgVoyUoJEi/3UqF5cOTKa4yarQT0Z6aBli wVktCXaKqsL1ZaxdVSY8uUHVUSB3eHVVej4R4UngG2u1vXyAbSKmT82d9ZI7GwsKevCc YBx+sXmoVCtAP5qi/W52x7IiL7NVlihN4Kb4LwcHES51WZZkentLSIuN9kvl6292Eovi 8GfQ== X-Gm-Message-State: APuU4Z+zxTpUBy5wMhnBlTY/ERZLv+gq9Tn8Dl6T9H9T4+8IecU4WqyR z9UWC1/HxXX4bTsKiAWVB8nwji0tdD2rshQQDydfF8ox0fgOre8/hoZZ7Eo1wB88SOg= X-Gm-Gg: AZFdTZe4MN8ihBVG8Uy4ONtGT8Mu8CRgLcS5bh7eATl7rBxpO/0xfEiDPEFYu+vP6HG GVZHeugQeSjqZaKJztq6wQaBH2OywqmDIxh5kIyDdOOSAvQsBR8rbIg0+K+lW/OlfXh75qHQ0iu 5B1yY0ZChsxHmFrl2aUkoKGfHAiqHLG8QBhnKxidkwjGz1U5Cg0UjICwE43y6x/mmpTMjoTjYFv rIyXUNigTH+MMay4tI/2KxIXIjCwp8TF8gCjO8w2gpbdroS1X39EnCuRBATUdyoPIihcfJIKoxS vsGGY3+UD+UYP/HGvXFKQCC/6d3FLA3lRVkGG73KkhhQkbewKN1Ny3IAg5Vbllmi/hnBpqPoCqi 9wtSs6ROYWzr/qjzh5mrFwsss1kgmMYTpH8+PLUkcttqlrJaH/OjgOmgfL4kEcU6U463XcS5sHt X/oBO5brMQpRNKyxALTHIIZFluuraqCQfDTrgaDYrZf6my2mgMM2f+p7DZHL7Lg8cMk2dIZBHOF 25hFXMEdsR7pHqvjc9S3mO3qiawigKnJwns7ifL8rApuHSB/k4Z0+HGUcsKHFx8i4qaIGCSyBBG yK+7AfVlEvjNvu/Acbc1WvgdNPubzfAJM74o 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-coco@lists.linux.dev 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.