From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220127; b=vwx3o0xU1y/YgS9ovymLk940xkhWsKY4gpBTMzG5s1YeZudxD5AUgFEptAa2FxYm3/p3 d+9XHCA7dQqDL+Y4R172PvTsCr3IYtSG0rGBWBsjJZPE13L7Wmu/F/7XD4Vk0Wk021W3s lmNC2WumUyE3kFXgxdJHxW3WA0GRLsQcZ2imvTJNTpP9Sxo0AoEp3bVPwZR6ZUdZWhepe 7+22xONbr33uDcquw08It0CRhC5pEE720qt/Ggn8VxHp1Nd9lZql+fkyb+M0MCn+2/g4t d9TT9yYKgFQvBaq35B7sEpA/QbsI7mG1xsRaJcxmItx0QDkd229rRX0DFmplsDEhcHw== 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=BTSzcgsOjViDb5bYJg+503tNVkx0Ygvy4ROi0WjMn+jsfVEHOhonLVaATupmCh5LbIu6 EIBPSPXaKUFEQyl/My+QRaW8WeVSFsDxJ4qboDp6bQw/wjdZmJX9rLQjfBX5kpqXMMcRf ODi5/asYvmf2dSz7x016+bHRKQDnTfGrU5fO3pGqXLgWGZ67bhH1yuKuM9stxsfV/Lh4y A60IBexMaTrjCSPpJX2+8TRqevw1Bax0o1VapgO5pHT45Rz+gOg0+OcMMcLlStxmMAwCp EKv7JMHd8JhFGjrq/1UTqDzrs/l6678BpMLi6+4+G9MTfj3Ti1BkL6KYF9+hwR9ZLRA== 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.46 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 DF370606A33E for ; Wed, 2 Dec 2026 14:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DF370606A33E 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-f46.google.com with SMTP id 5b1f17b1804b1-4a1fbd52ab6so91971265e9.0 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=RLtli6dk7rHcZtFOQkboOALSOSNCZbRocgz+V60pdz8dYzYmadfSNv/pWJdxVKxbd/ XfnZtdE2EyL7fYxjUvm2Z1i8YUZEoUl6kfJ+UgPGWEzdS3mnwERTNweSwnAfR55uLGvt OPoBuKoYEBFNoDGjV5qLZOSdKmmxPhVGGfdsSdeQl9N068T5xN2UneNjpyqjEfNf2zxD cf8I415Wn38H1LmkRh/hZWVoWjuKt5S3wXZE3WVZgLRNo44uYxChIQJ6ihi/QkrMex5e 0XEKZQmrUp8ceOm0bKS6iNfq8pftPcllxQLNQVXz33cBFZynH3HgfF1U6r81sw7yOObj 2ouA== X-Forwarded-Encrypted: i=1; AL+hErGPg/nLfViYIhk5jctQCT1wssVjhhvKSrL735qVUn7RsSkYRrMahH2GcQGF4kdUHetaowUieuKzXPYQfF0=@vger.kernel.org X-Gm-Message-State: APuU4Z+a3L6KfBrFfCAhfJUKo6Rw3wDO1r3Lc3gO7S/6rfEvtEBRNITd kYkSEx/wQrYOMgA45lz19ePweX0GNbv2YNk5h62jaDyJGIhPwGP4rPpn3BALh3fa/n8= X-Gm-Gg: AZFdTZfLPHpFkTWZ64GyQHInNj1fu+49tbNfh29CNMSIisPw1mbxb+KIfFD48uIJLBs FFNDDebJHWMYLdF1IkzncFFLvuDlyaB4/yx9TAuOsROL0th5M87M6HMtqcqVgr6iw3iZIO9068g ExHHLMP30Ya9DvyzOViFtqRGXjUfNfE+Ev2rS3s9iCrVeZwX94L/VOOY3b4Hxp3cvVEreXKqOU0 NtSiXriNK1dbo39guLgu1Qz9MSDwGw8JVTNDrW4JK8x1rF4pyRuOl7NLLtF7l7qgToOVnL5qEzb VoEvgctfWIWDQCyOBdc+EyDIYaV6gbHv9NsclPP51gmMgXBzokxVwPi69GyGow5VMR0iY/P7hJo uEvOmpdnxVSBFnZ1cVILshDG2uhXJ+JVxk7Ch/k1JvEKovIFrZOfdVxUnFfR9KN3DpgOyA4ruG3 pRQVWkrdkq/FDMKx8Rum50b9TPHsdFDotM6LrwTcjElKTAjyAWFcWno6lHa3uoneCj7z1GuOjab x6lvqKvtDNvUtw2lTkiA8KJ6b3YjeUB9CQySLuAvvCAG8tQ5NX4yYK8tKcvo8qqr+3d32PW9nq7 PPZQcIJz62iCoyXgyxpDaMjdPyMPjNnipP3Z 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-kernel@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.