From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290180; b=I8SvnGdKJy1CuRT57vmbgFsmtIKZm0KnhqSbF7ysbkQDeYuCO8Zl11KCsT66ZaNmEaEY 0KNLAwl5MRGCRqrFMPlnbkLc2uHSaCaIcm3vToYbLseBHaHgegttPj2qSWkei07NRXhYT UsB/jdhfhl3mOdqb+H4v+X9Ho1QTS+j/VhGk/WQnfbtO/hYXePJz3X3hQc218vcODnadL CPTj4WPj2a2JRmdobrDmvB600e41M4hrQyplKFK4RZ0z3sSPglvyT7PBiltdNvaHkheUU tg4OjjtLMG3TzykdhmYTAi4DDYhUQ5ma+aDdjv0f7mcWbHbO9mne8QermmFgV9Achtg== 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=r5MqFeNT5GRsaaDh2CeIU+28SueTbs6GLFspg/h3U60MTVcsW3CMNmNbg/Uja1kx2Woz Gza/t+eRD0nagarAdqwPT3fKFS5PIoGQX1Le9k5P7ZHtDKiBeZ29roeanZ0VytoC8Hqgg D7QVlhAxPxw1MG7vJwKPZ1djv+XxIE27+ARHMMxfckvgOqnpUfYZxofA9U7e2CPfv6kp6 jQ6qHgJO43NXre5+rt9bEaK3LQTgBaX2XGLKgbc4sgIdvlFfm/LqRLoQbJE0SKUfoE27P 5AK1ln4OScjwwxBgRiuSB9NBT/IZkrm0BQplkX06lZHCCIbFaPYzXzusLjNMy7GzGLQ== 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.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 314B1606A33E for ; Thu, 3 Dec 2026 09:29:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 314B1606A33E 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-f50.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so146560295e9.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=yaxmgdkkbeKdLywGwV/e/RRWV5Np3gS8y570LoYYreA42u35jqq/lsFtQmkbt/y4IL 1DEwm17txPt4dlJ233kvzjwwIRdhs3lH7XvtqExSdv9rRn7a6wYgPFKwvPh6FURbT7/W ZgOp41VnUxOVS8ayMJ7ouaY4bPH2KP8rEhs0S0afjb6xeK5/Ff9pCSO4CXLpp19bXa0R 0hgSshb57OQI0H0oTZUYMlnrNMEtuiaCkp6dntSFp8Gc4lx2x2ATkLCaA536Qb5EXWd3 KbQafdFBtsxND9TddyRZgmq8h61G5wv8bfRjWiKEKaDjbNMs9eapBsqx94A1iYdU4uCo 8TzA== X-Forwarded-Encrypted: i=1; AL+hErHj8orIqKHD8fTNdecPnY+1yZF5IbQ0eP5iGyI48frEi0zZ4lYhhIAjKrdCLbr2spThj4CcXZ2Rn/HYX6M=@vger.kernel.org X-Gm-Message-State: APuU4Z/g9NyiurzkS+eBiwv3Obk/873YD1klBvb6bOXEyFOB83GoskH+ nl8PnSHez644L5b1is4JtFcpoAteBxV4ccyjMttOlSMMStqBdZiBasbt6jKvcBfGnW8= X-Gm-Gg: AZFdTZfYgq3/IquFcWAztcwS1VCn8GJszbUkad7qttQOOWGaWcbWC900e9evzNCfNSf wQIkj1/GzssVWGeG3xYAemHuL473SyywaAkxzxAnaOKB52NNyTAdILHJhx2UZNEE4ntyFbY9upi xn5beNhFwHNLYv01bDiXgMH5JV1Ub6lKVFRhkIDSbzpwZflye5U1tC4Gj+ZvbLCbdswU/0dc4DJ yuv+k4cwGSkzQLVtaT+2qW329xG7Toys31rPlvF1tzbljK77Skv0mlIThE4hYWYw9y/teYfI4xD WNg2421gJp7/6Va5DHwrDIT5yv7qwy6F81/JOP9IF3Av+Vq2Gg9WBoJ8Jc4Kj3KYMlI34fpl6aw Z4LYFtWN13jBIOu25eH+BmPODgUGl7qRgeXnLRRalkgy8MpPsRFKmTM80TTLX1U6FZrRtDjOSYV I0xMqghTJAXca68gq9h3WthiJe6tTfdS6aWqaRn+ah7BMYy5+smXhfcsrNEVZlVY638smv7KF66 9zJKpRcxa10oysoNNKWGMbAlJYen9hRxUeK+8y1mgoQoWldS7Ovokd3AJXMSARNTURhrHW2J21Y JQvlCJRGlHl/uROFEftR61t0HEjn79NPIzcwZQVn 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-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: <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