From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220127; b=tfaWLvt2bYLd4/c6wAZsAH/E7F7XvdHO3AOIZkBFnkiIkQ6Hp55NqipeWsoknKjnvRVM 8mFl2GhUS/frMzTlag1zOpUJTbNFdtUqxbpHaJ2XKWfD7PiZViGZvGy/b4T+t7ePsLLIx V7keMAalZwfXSYVqDq/wRDzDXciHU71uNJeKSu4rU5O8DsALpWeCCZPUDAsM0NdRHuLR4 cgdlx8ebwCummj3I4LjrC9Id8vibT1VJNJn7Zb+XMNpGa/m7ElSli5TGNusqQpDIak3Sp kApi1rkSh85zG5rgwyfKllMFY+gUP7d5oewOhdr2qqMGINSWHi716jIWRjII0QEXk7A== 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=IqMeMC0DigLMVdUdP+Qcx+18IU4EuvPoJbakPYdBpp+eMPOAfEfLAQbu8tDeg5PPK9kF cnGs/rukG5W4hajirXPuov4f9zXbnK+iKXvk/Ez6jGATpl23nOc0bVcA6YQKRNYurT1Kq UP8dX+xkKn9srYdVUAxFjUflTx1z9HEn0wZkZa+r886gzaXv117eSNJMho57P+dYqSFEW MRZG59dVOz7s53hSrhYehnz0ZqnxVrESvR/wT3vcQI5XUiPgYbceRxqKpZLznzM60Q5Ru Cs7//akOHcJXg70t/egmr6NaUPr4vID5zKDwvxbe1dXpcBPyiPDy7zA8EfJJHoBsiow== 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.51 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 D97D5606A33D for ; Wed, 2 Dec 2026 14:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D97D5606A33D 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, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=e0+O9W9L Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4a214c5c4c0so124870865e9.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=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=BizySDIHViqQ9BYfbCqGX61GmH1Zi28nMB9+BbOYQVvtTWENfBZkjcaPG/o6tl05QI rZkpWvXIv7sPDqRVYyByKyZVoSnBfS0pY5xaWI+e0QiVY9UCu6B8kTWKKkVj7Cy6Wia+ i6Ww/2yLtNf0FqGNAGjTdxheUKHcqYDC0b83CfxS6OEE8R0pIIE275e0EkmhKccOOg5k zi14rnBfYPo/yfDkEIvzKKnqjeGsV80z3d7/ii0BmF8mZl0hr7uz90KVETyCZ2Iow6bn 23A0fvl94+nVFpqfSzAyO2sHMNbiRY2MeA+LxbDzqHl1n9UOgF6O3+mGv7Vi6w2gDRrK +Ckg== X-Forwarded-Encrypted: i=1; AL+hErEZh2nVuv9yqN59fXX4Rt+SRw9wjYBfgWg6GaNiblUETW91/u0moqCmAxAc3JQPAGzi/DkNJz1qvjc=@vger.kernel.org X-Gm-Message-State: APuU4Z+GpxUZDodtlh19MEf+OzkAbjSQyBneLMwgk1dgETkqO2Qb28+O /8YYkEEwfSw6QIMimV/zHLkuCX+NSM0YVPWJrEpp+/j9NpCYAmA4Zqkt8mM16eYRmq8= X-Gm-Gg: AZFdTZeINvbwSZlCpUnZYFiMe/fFJNOClA6GiQ5pEAr2r3EecQxe9C3iMnIYmivnTfm cJJSAisdn+qYwq1wipJ2ysweU3psOyyjJOA4AwXWaW3ZAe4d6+nOlcoDBd6x9/O9bV/yBHeDpTf ImY9F+5L5lzUYphsPGHc/si4FBd9goLHauEUbmWQSXYaVVR7B/mxo4XwLjS9tEXtIsqXVwa0pAI WeyT5wLvoSW0kM20dg+OnALdPcn4xa6Z/VRjmZY1b/5a3QAwWTl4fHikuPUz0509gzx7Xe+Em0c vgpR2FEIrVLZlqYSDA4M8iCJWt+Bc6JhQJ7ygZM9SO02SOnr4MlPOCurZs9CEmA0IhaDtt67fU6 Z2jETzZKWC1m72KWBCAkF/oE489EwRbOyQECca5F5U4dbQZf2PSVF6RageBZxGlYR4f6yNvjiWJ LSdWSbvU5ocKDLnynogd1Ib6Omzl0NePmJoPGKS6Y6ZK5ok0sDphOEJtsUFzcdmknO55IyVgWSv BE0GRIxBQsZoeOXluGj8Hy0eMAJI1zkpAGTVqKj5T3QSEzLFfjnBemgS7+ukqJQeXJ+En4ermK9 fwuJ3uQp4sS9WheoYXbo9HjdMGFUzDqUF3W2 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-doc@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.