From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290180; b=3HAsyB6Yj3wCmlr2ZBzWflDO8JRyio06EI68Lv3R96JkHLYkBazvFPeOoRb7IlrNr/A2 aYDgEOf0BYmS3JsYA35aD0MmNEcEi1tmrRMqsd87ic+jZyQor4bDxcazSPtgESIA+kLD2 zb588i6OGYB5c0H2J2f03gCP0ksJv4zDbW1d/4X+lPoWUu7wFShc72iaeynbEM8JiEuJx mau4tt4vmLKdTMcwT99fuSBapL3eXldWbFWEFPDC45X3ywx8AJTI6795E4Vj2+9w2YGkC bFFUOZe4eCNxIQ0iP500Rf1DaF0mcj5OWYSKdw7oomlQCVeEgvpEbajr8O+NVyws2Aw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796290180; 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=xXAV1gNrIWfpz954wD8uYNHjwRhai8vooceExahwkhw=; b=0YQ/1yJd/BHeLibtfJ9SDrTMfVc/+EGtFZ5g+U+q6HUk3ah1fOtXo4uoOltsfH8kUOi5 J3hLEKjJ9/SRWD2ZBU2ANmX61rCvdCaLpXDYtmf9SkNcdtca7UjNRRN4kZkwQ3FQcc9Pd kR+8Xo+PjPlAuiMv6FS2OsM1s0yrdKn5AFdgziUtXr+HfhIolQ3FDynK1YGUUhNBBI8y+ hNaKfBirRzY5i+vCaLuRPhjy+uElACFjANDuVZX85UlQdt0iB7m3y4uFS4JsughQ6OUlZ 1TMwJ34MBYnGD16RpjVZpTOZq3e7FNGoNnASEVQ4PxB3wZIpSQIrUo4+6/BUtxAJEIg== 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="SiFD0/78"; arc=none smtp.remote-ip=209.85.128.52 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 1FF63606A33C for ; Thu, 3 Dec 2026 09:29:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1FF63606A33C 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=SiFD0/78 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so146560345e9.0 for ; Thu, 03 Dec 2026 01:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796290178; x=1796894978; 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=xXAV1gNrIWfpz954wD8uYNHjwRhai8vooceExahwkhw=; b=SiFD0/78/eh2mJNSvFTdPLBsChzzIfg9l2F7oL57QrunZ3b3rnQjVni0KTty7YZHJJ gPT6WHSrvuGgwgBL7yxVmfJxumN5fsKaCbgGYmtHUhiiQpcPIGkrrX/AY2S16EBT/xGS trUFO0ms6plWTTvoyitZTukIL+LyhIcBBDgVkFooRGwLMhB5YE7DoxXyuDh6+yzwm3Ec RdH959LVDJrXTyI3yPO1Pt+RdGQCC+NNZY9yMz1LZZtUkdm5OUG4phAaZNz68XmY73Nv /MQDaqxlpwL6LuGAenGd9XpAA4ki2rpo3yhJNF7oRXGw6qv9kdbgDzX20XTIWvAu7gXB z3MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796290178; x=1796894978; 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=xXAV1gNrIWfpz954wD8uYNHjwRhai8vooceExahwkhw=; b=RFxXbJjg4x/rEVhHzxrJWQT5dCvxRImOAnp5AisVgCEa1HoL9jETkJHgsrFbQF9g96 ahG56/5lTWVFaCEt8fCZuiOV4auscBEfteqwPiA1PlYMh3pcxpLoigFTfbS1XeKzFy64 zxfs0Lf0C41r/CKFqKpYhFjdTst8flo1KxcSs8dF/T99wIdz+lz5bDRQQ3pSBmBFWLEr GT1jpjOAIiaFbY2RF/Jf3uiKu8/K0opdyCaD0haWsTL5/nscFFTrEooHkPn0PX13T3ul aHkj67tyto5yXOUlvmtsIJI7RQv/0ZKgUNP33uN2xWBlEjd5ihJM1cyST+6/Qv7Gpwoa xh1w== X-Forwarded-Encrypted: i=1; AL+hErHX58JqTFDli+qh0xwxPXe+n15Iu11E27e/DdIYL5+YNDT62wSH3aTVGpzKD2FIPmcJE94=@vger.kernel.org X-Gm-Message-State: APuU4Z+MGeli5gj1JBtrSSY0lY+kSnSJwuVJTYBuLunGxCPsE7sc0qQ6 +lGte+vMnrgCnzX7Xii9VZZZSl9wyvJV3gRm6lXY0W+/pSSvN9s0e4hqYkdOvIehRoA= X-Gm-Gg: AZFdTZfZ1Y8syT7/MT1a40ZtzgKdvSxB7GXGNvb3neJbP0muKN2DhYTtf/DJiHGxI0A bXzp9dHxEQdUqSZz0Dv0QgXgbay7Kx6BSMfDgwtOgg9W3cUKx31y9pjVzJ9eNs0mrnI3I8JbjA3 rJDaZZmb4z2S/8WY9Ji8l4P7S8GpJ2ySpXn7FZRPffSiByFNhcAyWTXs/2xvzjCmdS5MY2IIynn autdBeQtEHmuA9Uda/GukWeL6q82weR7Ooj6N+70uJxnqZqH0sFReoCXMcjKD2ksdpK7nDHSl2P tIduj8AMiqMKSKwoC0VTn8En6kBcogFHYAZr/NzbFM3cla2Y7X52hhalQuL1r7dzDQdCepjz36i bGmEF8aEgX8m1c4WJrvjuzo9JhClOOZahfQnlnbS+KLj9mC7TCUtrfxCy3WM4qUozVOJm1lcKya CA/jww+iQ+qQuemJKt47656LywlTA9RHSRiYC+3EGn4qL5VlEbtR9LHpFExOypoCOiSvDcMhuGT 9/bcrEP9PGWbeQTO7DVLNkaOZ/YTvsBo2XEysNC2mKreEgw5Dtpt3UZsbebixAEUTddm0vFzgD3 JeCy25Zo871eVlJdSSbz4jVfligf8fNCAmtFuanz X-Received: by 2002:a05:600c:5395:b0:4a3:5a98:c279 with SMTP id 5b1f17b1804b1-4bb8880e599mr830018825e9.8.1796290178399; Thu, 03 Dec 2026 01:29:38 -0800 (PST) Received: from localhost ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bba6a0d65fsm687592975e9.3.2026.12.03.01.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:29:37 -0800 (PST) Date: Thu, 3 Dec 2026 10:29:33 +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> <20261202142810.GB868208@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: <20261202142810.GB868208@nvidia.com> Wed, Dec 02, 2026 at 03:28:10PM +0100, jgg@nvidia.com wrote: >On Wed, Dec 02, 2026 at 03:01:58PM +0100, Jiri Pirko wrote: [..] >> >> >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. > >I guess my point is it should be clear enough without having to >consult the documentation. IMHO this YAML is not a good place to trade >succinctness for readability. Okay, will change this to: supported-hash-algorithms[num_entries(enum hash-algo)]: hash-algo