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=1796290180; b=nGJh/hqQSHoX48SHU3oX5wQrWLc9aStnrUCPOj6BYaoVK/gm0DeCDLVkf1LYguCzJn0H vc2KJcc+lPSL06vgYCIr0aZjA97xbynrv+BQC5apdxPnj04Vya39DjmHBhO6b25rU/Fn8 f+cdeMTiwEJ7VFjSrSoFa2/mxll0mEPtL8Pc57hX66EmzBZxb+bkYrA3bGBRaazxBnqED 4amBHdzqIUNH+vCc7Guok4HY3FuW8jlc2cft7p3pvNU1SyZUG8Qm/uvilHtKVOXBW9iDM EfN4314ZqYG6Iz/6MooDSNk0e1PEW/hwzQSgzFtVxrrHji4SIq9tUQtVS4WS0+GenHQ== 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=bmbonZEAWBLFQihn04E8KRVxSYhUTv49nDeWszHRbVA8YYb/4wzqp/+N/E7ConEJHfmW KleyhCXPqqLSC2wMpLlOigw1Yzf+1VwAfb9aJ9tdqS2T3AJDgwN5pNrKRHsCCZjZ0cKIW 8aiOZQAHzoWt7NZC8pW0tEwwlV3a/JjJyyZ0BlqvWnorZ/UXKcEyP1PDihoFiXq4bXsWD bd7tlD+XTRuljf1nS2xTfJVke57e9HrZJgAF/hZK+ySZTHvHN8blHs8FWZwLT0LOSnV4m AXZ7AdYs2ABnpU1jAdVvnsyuWDLr+6N4+edY4ulJuhc5uJxy1udmZ4gBte7uXoafwRg== 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.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 2FE9F606A33D for ; Thu, 3 Dec 2026 09:29:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2FE9F606A33D 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-f42.google.com with SMTP id 5b1f17b1804b1-4bb702a7548so127381755e9.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=e/mTWyk0N4o5XxJE9tfXml7vW6hL67jXLa7OR2RYbHniKXy3LkeXphxfGG0EIjSR4U nzCcwVuQHEWwHwU0DnHH5OjK26m5xtmSHmieKjxqjSkUUECytIIMrp4V1shtDYcciCDQ bm3+ksR0H7/qpH2rIrbhmOJHG8dAXRg5mu0CsYbfWLShr/ISAiqdAOQqGFawPvQKJfb2 n/W6wAUjrZSzYszhUq48kCNSnai2d5Ljhw/qqdCYC/2mfXwQtUPCZdMfaFiMDJaHhdrB NQlFQVUJoTzOWUQ+Fo7sFMsZoqcl9eqTT5NiGpMNTqr2JAwmJgwfJJAKX7fFq+BxrJ/X 8bQA== X-Forwarded-Encrypted: i=1; AL+hErF0g8fiH1/ggl5NSvZUvPst8JiRafJm4rpjo7mGJp9YRNLahVE1Rxop2mT/jzlLPUzLRp9O3GVbVtw=@vger.kernel.org X-Gm-Message-State: APuU4Z/Z8CRDpSpAQ/8F5DhWyoBSNycBMbezb0/v6s8dAOF1TnmsTs+D W2xwlHRy0a7OCG3aW3DIctofZCzOUy6PcI5UCPtkpfIHEEEog/FkL9o9fJvHXw5sYyo= X-Gm-Gg: AZFdTZfqXlzMqa1zkSPWE8GtqiKYDa+zBo5gQMEsPFxCTWqVTZkiaN3T1/BPUOEzDRx /Ih0UQmZEH/MtVERFhSRJXfQA0nqxr7+31YPO612+VLdenLA6qR+a3kTSLjsNv4IC6wXmWFfdlP Wq2BYz7vLxayg1XQob5+SbF/RDmlFDYZjlkuXYy5vttmia8v5Wvvtf3QWvsBhhPwAhhvmPMzlfN R20Sx5XOV6Prmo1CIfifoZqw9YABxvSd5JFe0dg9GvxAuLMHfuG8Qr2CMfqLGrPg9rJwfj4KGXQ 8KcBOfC7sAERsVxalRNat4j7Bk0w9qFgfbIvh8WYam74maTJ/eXd3J+2udgOeJM/AqvAElP9Znx ++D6/fGEm28JYnWsQKpXpxmqBFuGf2gyaCWxr4PREtA9wrzuV1xvcU4pk1QzmGCV7KiOCTAo5+7 gdtmK8vPnzu6JjY2J+LAH+iET7Gap5Hd0lWo8TsPUykWnjz5SygGXsTExzp51tfsgsjP92gP1y/ ciSrG9NIQGAZdQOqGhgiur/zeo4VD2xiwTtErmJ5yTh4QEZyk7oHguMqJ9bRJ/lrQKRg+90RLvL x20ASrL4yoEycl26cBhFo1Ss4EyOMU8qFv32mfo+ 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-api@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