From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290180; b=GU2zRBhlZXCRV8QMlgqsi3u5iLW8CVtD5YuxzVsJSj7QqMayQPOSJyB2akKrTzu100/1 q2I5ZV/SX0QfvwnchXXqlRFBYPWcGK42TDo/GxZd9mho7N0Xsa3wSu2fVlXJLeCYuHwuq jp5rP0zYmpPB/1sr0DdOYqaL3FZQ3dmHSVOm3uXOCEXpHspF8KaOGIGOuu7htwSRIQywj cmn7EQn+BEMBkx0eMUFc3Ht+SZey/CM09MU4strqw4Fa/szv5nkEPtEb5R0+Y86ngCQJN SglqMyDD6Rq0IdlXIvCC/7b2qGYSlU7UjO4JUB7iE04W827Xgxocs2kzMpcp4vwoH9w== 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=5Iq1sUWBGMICiIBUDUh+Wh7rHz5iZnE7Q9ZXJr1SSR2ZMLz5nBukLQAk5eSzDfGmMZqe 1oihSuPp9aIf8fjzsfXxmcAmi0tPs/fTzF99m2aZC33xKXjM22bMxyuDPqRvHb/f6NGCp wuc8TRxZ30xxAqZS7F2LqsetmED4Lepr3xxjGeCUGlagSlyvFV+eLiCgOaHlKuH8Z2Uwx 94blU1aJlb0zRf5lXNYpbLQXf5t+/d5U/bmnBNd8IKoV+SpGsaNMyZiGNIvOyxr7wqXiY 5Z3z7JtHRw5Xzb/OpTucuMnObsHG2RkCZUDYpheD9vIr1/3lg5OLHcdyfPyre923CHQ== 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.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 2B7A3606A32D for ; Thu, 3 Dec 2026 09:29:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2B7A3606A32D 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=SiFD0/78 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4bb702a7548so127381815e9.1 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=u+PNvL/I6Zbt8cZHTUcdxFPQhSVMpoFlgaU+RSPee0UIyjkkKUZjOnw+VWX+b7nN5J oVCDVlqWSMrfGj4UQNGqo2pdhIkqyGtvPxN3uQbmgw6yH5TE0l2m5j/+9E2gVdW9TkpZ pgM+SV3KpoZYBjV8NDT+/kx56h0wayyc3vlwXMHEADD/CeoySzx2daU8/AWTsb8EBs1d YaOJ8QKUHiBQs0p5V8zrKTz3b2KZ2ARv7crHHnJ11OzV/0FDdKDSWfrmhAVGOLbUbjdU NKT5V9xPygAx5Gq5ocdIuSEDCnM98sK5QkvWFr8CSRZ5TuKcaBiaqdE+DNWhiX+xnPEi FEQg== X-Forwarded-Encrypted: i=1; AL+hErE2vLrbUph6jxMt5h09SmWNr6+4RW1g5mZAtp3pG2iV7C52z/rHk7YR8lQ3Drr+q50OS2gnc+9vyUI=@vger.kernel.org X-Gm-Message-State: APuU4Z8NjwKVbwm/NvAzmvXq5gfrxdH+6RKmrw3JH8j779A7FE6W/RnT kQH6bjRV9mC6/6d7Pgikzo9a7phoN5ncmnA49//7LyNEmZBwaA+WzoN7RpietfwT0spd0ESFoZ1 jiyR9 X-Gm-Gg: AZFdTZd/eibrwIvTIOD767rQPF/GKC6sSZgt5gVLj9HST82rXdgREO4BTX3XRhCRwkh aOX9l6G/8iuxhRP0YqR68LVviHLfWHIl4GigKSz/Z6BidPKmfe9sNudxH+tn+Jzg64ywlQ2OxOx q1tM9BLlA0Fj7rbOdxmsFRO0QCyasjfXelJOseXErq6pQN06eVixnV5awdQsyq9fPn1rnheoJ0g ZieeSCFrvyyRGY2795fXR+bSIo3D0c4hjRTIpsoKggEQfU3yQ8NbbolgJXvogpk2i02WaqOLDZI WABy3HHwdeWbHhKroTa9uIioIVQqgGfh1V1N9T6DotMaLKX2ikwHAOP96SMWQERkTo1BYZdIJRl wuqk45PB0mjexd9LW7uD4msDokutkAYtxQn0p1pSd+5qIbbQEU7eYLzD/RQjQQGRkt18ZHsvwwl LRhrnznQuyYK7VjT3oBpl97Hw31hP88qhMnzyFfmncYFALMJcCjoc7AEWo3t0cvsW6sRjcUewAw OP0SF9Gaxebo1idNocpIPqXri1Bd7uekP50JxW7N2qnNtXTIZZBkVEmg8ejseUtTmr2T4jupCSj X+qn9cgea/sev78huzvx0XHOqsfoAGfv6v0nkOi5 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: 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: <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