From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220127; b=kk5Ick/74K0hGGJ0Uu5Ui4FS0diJVB25GEA4eeJi9gMcU5eN49NnWdCy0vzkjUjlfoRI UOL/ScFLz22EPw/4zQhKt9w6mNIgKSyAdXVHQ6LRAF4RCopYEsQMqj7iqQ3Z5oyEFAtZ3 Z/4FqiuT4Z2gfWNP/E9Fdy2iNbbOFH81rEeiiIrFnCYj2zXaK0+5f05DFjr+i8Lr1rHSq bXVCcL0B4t3XN4BtR6KhXPBUIS3MZIYMw03VdlKhK3gycOcM4K+LvNbWhToUtHkiDxsVE FqW8fofxTHPNxTYFXrEHyYoeRgwWagcaFxNWTje9VkOUCiLQifN3nnJBvqe/N4WBwdQ== 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=fl1xWxoH7ELOL7KaGYURhCYHdAL4xnAKdzykjuwi39jx6HLhXkeCijj//jbbjh4FXXKl 7nPKE+k+Blid0rfQPPV0NY1M4r2SCIZ1kl8zPxAED0e9Qsy9oGgkxuQ68Eh0zGTJvyNOt zG/nx/RMIEFEivlcrTX/ajfX5ELwuu8kAd/r78YZZeGf5HAZK3gQl6AA8N6X17xdKNXWd oxrn6CcUK2nndgIWitJOO4VCiwYP+f5yYOVEIcvWGoaLqJ6rItngXp3Qu8bzx2CnnP9KP x3XCOzkWvAVQGJlFzdMoF3p2ngksoRFVE+dNPEtVUla1MtSf2dw6xluhI5ycm9YaI9Q== 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.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 D261A606A33B for ; Wed, 2 Dec 2026 14:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D261A606A33B 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-f42.google.com with SMTP id 5b1f17b1804b1-4ba013938d7so122026005e9.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=N3n77/I1gL47qKvHlGlmI12M4gsJuqgvENNeAuW+Bjv5MUmJSx3Si/QUo5H6YuNOxv jfOQGYJlspp61hng6XGXUVmY79wbjj9+GL45bhHgWnPMhnhfCOykOM6f/ODP6F3fgUrr BQ/iVBTN2/PvJ4WYiGnFZzAx+pLT2SqlEVs79Ydbmmx0JqmhLoKEH+gxqsRFC90e4n0+ SHgCEc0KegVtsZIxKdutGv3QDaXUQVUglZYfmoBUOfEC2Sr/yMo00YP3rZebVcVLfR4t Ca06480/jEHDsim9vkyvQ+efJWxut7VWFNnjEa4+YgG2YgFfAcqRHKAVDjsYQBVdRcAC EKRA== X-Forwarded-Encrypted: i=1; AL+hErHgBT6utoo/3ZQbUaVr68rOtuB/8q/bGhr/wXRHy/sC41mllSx6N8VH6lFaQrcJeJUvRk0=@vger.kernel.org X-Gm-Message-State: APuU4Z8wQW2PTbbOYlcHfXEGNI4vgb8tJM1Bjan6QSWasWDV5ym82yH0 9h4PlX0NOHQWoikuqr/d0Y0pIhEwkNJXMIj9HsXhflZiHDDWtYCWUH2ZdJL1VY46u2Y= X-Gm-Gg: AZFdTZeDWoJkY74IlSPmFcqgi6arsq1g+ywcmbpoWy46HTIA5jz0JXsODqfCbFKx0iP 2w7XZTOpgVR9RIrJx+N9J1pOinlYsCR+7KrYpY+kIDBW9taW/lyjJ51XiNrIEi0+lQnowsL1eji McWBzNMqz1XIsTkUimNL1QgBuK+QC7l614u8fdhIO6gNiZ+h1HOYa3mSRW5itzClkcmtVaMSfcE AqnLo9AbCg+BoXa1seePuhOu3+FJBaXWkJHCi0s5RQuZbEpXdJgckaq7mg/cmAJs8Rk/+36qgI7 c1CrAC9woWmzGLw1sCguXFBQIoDqShexS01eP+oQtgCL6uROP0PRmI2kOgeg1eTfCFze84XhuXU 1s/id46YTEZNy3rTh4qOTFjZKvatlZwEZjOrypxevgLMBmqjDtnLL3JwDZZDviukNfj+3NgPpQ1 XMX36kmisDidw3yZSKTG4L1FjsLcKBkpCzGYWdt1hBNLvgKDeHlQUtqvCcOlKeeaCKlICoPfQ4M d4VXPka6A+NZbDCOFu9xEctkjos6mbGm9GIIUn2WZfoVGljtf5RL5aAVUx/OBExCV33xHoaJ6HG UCQaRJiuG37MLApyTPU8aQdRg3p3fl67gDGD 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: kvm@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.