Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp467705rdb; Thu, 1 Feb 2024 14:02:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGs1uXkv26srY67RU7fUe14+shc1MMyOdH5o61kIr164fCWziPxB2ZwcZPbQpbeBjRHY+Mj X-Received: by 2002:a05:620a:318a:b0:783:6e78:5138 with SMTP id bi10-20020a05620a318a00b007836e785138mr4677243qkb.55.1706824976303; Thu, 01 Feb 2024 14:02:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706824976; cv=pass; d=google.com; s=arc-20160816; b=nhuToO0jmB2BAVO4IST+Rar95QqbD45Wh17eItGO8beMdQuvUquO6orSO+R/47wErb ZKAU9YFJkoYzTcrffmZlUv8IXwpTWKJhbqqE7pKzqJqnd8h0EYtysKMeq1YX40dzx6PY TaGSFznXLbjhjYCkKTU3fFW53oAMdcJUnjYiPGoqKu/n7FatITTfHX6mjEWdlggiu3e1 ETvAZO2Bf99fQntUDy864GYEVMfFihf6uowMM9o5hM2/SKhpE4/pyqVcDr9ASHkXJ/CK kR5dr4ty4GRjxfYzKZq4h2HIHONJmaYS4iOJYsesVIE1OJ8TGfYcjuZ0MRUPQ9ENQZ7T xUIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=QiNfWmRaFs425HrmGWK3F+bpacxbRPm2xwsnX64FA8Q=; fh=ZcljY2hjxhSI9BEDssfj7TR1CBoEJ9fnFvgLHwD3WxI=; b=dfTBdQtL5ZLJlVg09xi057O6zR/5FtT1Y56Fu5vpZUVgi+CdM4P5V0Stb3+RR5/bl2 P1+JIutkDnjiodiRRo/H9gmowzCDAodyipWdNuJDH+/UHmg81aAcyhIu7ZjGXD55eCEH uDaV6oDS8JCwoc1dVC0u+mAjlH9F0VGaCttBN6E7nuGueUkgy+Y7sGzT/y97lc+HwN/z kRIMZvlgWzpwHjkevEZiu8+5jdBVVBcqrdp1JOW65clrI9kkMgdh48CYDgrkTg1Bcu+w 8HQae0BaJAeJWfrdsqEDXBvrgrb8Ms8VzmJRwATV0hNrQPBt+DHdNnM4lIQNASRSLtI7 k12Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y/FJId3R"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXkVewvkAnMqEBv31II5yy0EzTCsMtXqXkBtOKHiyKEkxQkoiqGrwzCWTkfyAhF87W+SG/uRzW8WhuvwVoMu21nvMrdeFM6aapWAcGjdA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vr21-20020a05620a55b500b0078402036e66si480988qkn.723.2024.02.01.14.02.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:02:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y/FJId3R"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 12D3D1C249C6 for ; Thu, 1 Feb 2024 22:02:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14B9A3FB29; Thu, 1 Feb 2024 22:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y/FJId3R" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34A393EA73; Thu, 1 Feb 2024 22:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706824967; cv=none; b=JBdb30UQfSeevTRel93vY4K+o1oU70Mnfbspa/JCsrCfhEUDMYLL3pmM8eFYSNK7TnN3PO1bJzRbawp5XTBCl7HnP0R68OMkyPMqrxFkl7vqG4QigUIvwvnDs6PKyrnJF6TQjXksosKQki29aPN16F2pNvHyHd+Xqeje3vIk3yY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706824967; c=relaxed/simple; bh=QiNfWmRaFs425HrmGWK3F+bpacxbRPm2xwsnX64FA8Q=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=VDhoUZ034JJyBaehpstqyGCCQiDjW9PvQyCJN3JstYcTtXTdbmeOWQ/z35a972OPUp5AAydU9rULRtBX/SyYiSK30fmVU78KwxWUGzJyD4mabX/mG/ijrRvonYEBP7aJO3DAqqCcRmgzxSaSGBA2lFsX2W5nX+CesydwVLeYIuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y/FJId3R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A5B8C433C7; Thu, 1 Feb 2024 22:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706824966; bh=QiNfWmRaFs425HrmGWK3F+bpacxbRPm2xwsnX64FA8Q=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=Y/FJId3RPFGnOsy5WCk4US14TJujegs9EmwDK/7fUB7Ua5L0Q13q3eQR2WagTHyjm vYEvGEPEqd1WQ2Cs82aMiAWuDFkcM7tan/CSID4finnSe6Ccxh/nTYpR1AMchinJmD QZbBvqBU36C0Dv/Z87ShjBxs+iXhwoq+JjaG5j1dDZN1KdIhgfettcLK/3EbB69gB3 q9PxMXfskRB4mjWQs43rz/5UwRHQ0pfGs6bftyMII/JjjUU1T1U456eD70Ed3VSErq 0eO5b2np2wgd7Pr2MDBQ5Oyo8KPpbg99HnK41gXQrB8PCSPBJA0p63lh2zSDD++a13 WGIRCyCXdZQBA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 02 Feb 2024 00:02:42 +0200 Message-Id: Cc: "Kuppuswamy Sathyanarayanan" , "Qinkun Bao" , "Yao, Jiewen" , "Xing, Cedric" , "Dionna Amalie Glaze" , , , , Subject: Re: [RFC PATCH v2 0/4] tsm: Runtime measurement registers ABI From: "Jarkko Sakkinen" To: "Samuel Ortiz" , "Dan Williams" X-Mailer: aerc 0.15.2 References: <20240128212532.2754325-1-sameo@rivosinc.com> In-Reply-To: <20240128212532.2754325-1-sameo@rivosinc.com> On Sun Jan 28, 2024 at 11:25 PM EET, Samuel Ortiz wrote: > Some confidential computing architectures (Intel TDX, ARM CCA, RISC-V > CoVE) provide their guests with a set of measurements registers that can > be extended at runtime, i.e. after the initial, host-initiated > measurements of the TVM are finalized. Those runtime measurement > registers (RTMR) are isolated from the host accessible ones but TSMs > include them in their signed attestation reports. Please expand "TSM" acronym and explain what it is. > All architectures supporting RTMRs expose a similar interface to their Please expand RTMR *everywhere* ot "measurement registers". It is totally useless terminology. > TVMs: An extension command/call that takes a measurement value and an What is TVM? > RTMR index to extend it with, and a readback command for reading an RTMR > value back (taking an RTMR index as an argument as well). This patch seri= es > builds an architecture agnostic, configfs-based ABI for userspace to exte= nd > and read RTMR values back. It extends the current TSM ops structure and > each confidential computing architecture can implement this extension to > provide RTMR support. This patch set should simplify its gibberish terminology to common language. BR, Jarkko