From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290180; b=AGi3qix7eKIcJ+UNuhIy36BuA6nwuQAhKbKQRhf/FoBe9Ucug5skyqR/XovHjrFpMgDK pSnE+S5W8jJchhE+k8ws9AaTcqDMqAQOnxO914NFk6UXrgR+G22uVoY3S3n6fNJkT5pLo DVWcIg3X6amCJjF/dbgmwm7tbAZm9XJKzyGPZXJmhuQEdOcoVjjWZ45Y2IAoG3sxIr33D Zhwpx895Qae2SnYEKSrDmmKbRVzJBSyM/QahwWkPraidTTvGK2bqkqrvC0Byg2/nom37k FZ0kIRMICH9hPVrhv/ho6HcCrzq6LcsTxhS2W6q1pfJZDpOgPhw5N2/n26Mgh6no3ew== 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-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=ZeeN1mLWM2bMqemqf5UwFEWYbZBtq5IhvLg7x4D80YZFfcBhVKVihzxA3C2vtfVEyZvM I7oLJXGqZjF727PvQtdjuLqcwq90uqh1JVq2NAP5PJNJr6Je6huiTCrmZGifBILltnSXx mElPZZRKCEp27wVpFO5VC+m9Ovee5VYxhLMvnZpQ2hBqg14qDQKeBsutmTplwFb1EJaWV MUvtSBIjqsivKq5+SiNw7tHoWrr5MQncVWWl8CtyaXOQiRZYtAfuybvkhhOk6NmwtUYtN LYwy0d7ZLllN8ILIn+qvCWse5LDvtKxqVT4gIDHX3ixB2svf/nk8mtfFXyKcTnh7Ldw== 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=MYCz7OV8; arc=none smtp.remote-ip=209.85.128.51 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 2D8F8606A336 for ; Thu, 3 Dec 2026 09:29:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2D8F8606A336 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=MYCz7OV8 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so146560335e9.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=lists.linux.dev; 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=MYCz7OV8eyO5/Bt88hpTxlOBxSVEbmfuK45EHujpRNnoH4Ty/6a7mdZqZelAmaPmEj YorKVyAgws+5A7ewqeNd3HzIGpGwNnU+AY+biA7pi79RoPxrQLxquxS4OYN+kJonkAoa qjh8Y4vtbEY+3dck+h1GkK0lBDGK96wK2xV3556G0uraZ6kUteHQGLR8DfAgnbHsGqev 8AxcKdCGGswn/xfB2WC95JnUB8W36F1X0MBcrR0chM700Esp3qR9J0gzRaxYSc9PEKjR mRj93IcLzsqsi3SgNA6mMuaX4qQ9IMCNhT4nj+DhOciqTGbxqf3IN26SlaOOdFWv/Qae tT+A== 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=tjm+EYKFbHIE3LWL2e6ogZ26GiObd49tZIi6B+VhGL5vaY5UHUL89lHYbWCEk/na07 alxFkEp4akSctg02tmeHFJWeJPC8XUw3cqQX0pIzE2+yGIK0AubBM0zr2L4Xc2HAahuF pi4JICa4agMxXjp7LhLmXFt4rmm+57eO4SGLkltXh8tTNvt9zmypyjMUaiOYmtNEZ2sn bp8H0zR2rTMUHd2xYGz8I5BToasnChVmMjzoMEQQT8qT8ttDzN7xIV1/LjUASasW6gZy pq/J+4e+iLMbNxD0isqRAnAa3JUYPAG1pspgJLjvfyqGRfki7k/kdbcXYIkn2z+DfLxn eeGw== X-Gm-Message-State: APuU4Z+N1IgQTk+DU0Zof9f7JwfmTe1sk/UK9NZVZPjqKLljknpp/TO2 HmaLcTXw6t2OSIwqo9XpcY/0Gw8uLRgIuZplXcNGGvPe4oydBwSfxisVadL07+/Sh1Y= X-Gm-Gg: AZFdTZfeENDs8/Htt+Ohe08eqbsC5lNqyMmlWioDK3DQqtWjOjEmgOuBJHW6xptNFY/ 0HoLRzkYqNejIv5xCdZcTb6D0OV1ksim8XQ/iGnZbbEFyprLrHl+fFskTE0GTgHTZ2dO+OkejZx 05ARFwyvV2cmAKJkfA888YG4lVZQcJDK60Nc208YZ+7tlUmaM4g6aYVbRoVEwN7VIV2+t85JWYw YMC3IpQkFQvdhD/NGg45kaHde3nchCB7+x4aggkFNl1r60BlXt7iMA8UN3WmYcZg/EgaTQYCVVB 3sOTpfz3mtLMzTjtm0Tm86OQKAhv+cjEmeF2T+vJbTVwT8CWGu02BGBbyPBXw0tKl40A0SY46So dzi7dTij9XsnBQg9m1p95wdd4JZ61EAShVdlr3ZaZZCKSXu/hcNZ0rJIU0MgVxq57+7QpXifSDj /fA8Ikeqper3NbjaWV1QAyIvIEQq9qbrOyNNvk5OLi1x8hdXmDPlErLivw28Jm/pE/45CBlBXn9 JRebozrGDKVxPj24kzPMQfWoYAddLb4Q7qyVliIRFTTUdS7A30Xu9QJfMLJdxFcoMfx2S7VKhRi 0kX6YpTuHX4WukzCciTubnYgnAn9N/L9LVb9cpGD 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-coco@lists.linux.dev 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