Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp106534rdb; Wed, 17 Jan 2024 19:36:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhccDJbAv8BwNx2gxLbuUt8+JCf5bCrPFFmuPYa1FeytPh3ie4AEH2x8l2L4acmkt768K6 X-Received: by 2002:a05:620a:1490:b0:783:549a:aa47 with SMTP id w16-20020a05620a149000b00783549aaa47mr444892qkj.10.1705549013113; Wed, 17 Jan 2024 19:36:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705549013; cv=pass; d=google.com; s=arc-20160816; b=skiOWGyy1/An7SHrS1+E09wOptEIXHL+BjMJrzv9cv6bon0lWZTBVXpuAbNZRvGPH9 U6rD0J5E3NTEIprTK2KcK4qzsOM2LjwI7uAWF21mDMaJCeIoljujVnkhps6Y6zjS/imT PHNcz8gDcTheT24tlg+T+b29NoeaYnOaez6ndq6oV0bV8nf6y0HHqIIqO05LzuwrFF2g z+IWVrE8dKdlKCxqGgR43eOEvObl+aB1psLZ5ZwXZ8GxhIsQhBTSUMsq/N0EX4B76c+f lUAFIBwR03Id+c80IbqQi5PwladYhEX9oDTYdSaLNU+PexSVJIrMWAaX7STxj1e9cU8y oclw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KHaJKuupFrb/5JLgFhafWv0RzApN98z5dybDAr16RQo=; fh=aLrLzJiKfvaS46/EHheURa3wm2HieB9nRg1jmNIkUgU=; b=kuTRwlzQfhQf5i94du7ZFYADUznTuYH45OJZuwYftvE3cHElPvaFOHyP/56GiT2LmI XZsfWbQjox+4W0KbGStQQpxtWaY49uC3JI0IRuEmMJjbWXMtexsCYV6bq1Y3SzCiL1Pj FrtjLBooDtuSEYT27eK96ZKx8tHLdiG4MuRgVINeuVoJNUnaZQOhKFOvjLHF3W4+BWfl LgX6D5gdxo6nGjybD7Ds6Q7JN/tGeO0j1lNuzSG6BFIiCNbL2jGRSSKEVsM6b1zkt/Z6 Eh5bZjXhTton/+5CzOD/CSnXEFnjU+oAVlDAs96lph2VsFO8D2+1H4Cht6NJNAkYKAmJ mZzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O+PRy84f; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-29691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t5-20020a05620a0b0500b0078313d956aesi805333qkg.494.2024.01.17.19.36.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29691-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=@intel.com header.s=Intel header.b=O+PRy84f; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-29691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 BF1251C21DCC for ; Thu, 18 Jan 2024 03:36:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78BF763B5; Thu, 18 Jan 2024 03:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="O+PRy84f" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 EF2DD6104 for ; Thu, 18 Jan 2024 03:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705549005; cv=none; b=mykUBqTnRWX17UsrVcSOxD4rRWGjEjVwrBCNORJ6hxhPFvxyvp0Ov6Drr04oL1SHKiJ9a/B5mQhzOxpYSbcmVBlWkDa4UEiRovt2KRzrNruWqEPYJ0KAPXz6HyowJ7H2aSqYzkpmUoKMm6p7D5b9JXTA14oSgap7m2Wuh46jwCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705549005; c=relaxed/simple; bh=KHaJKuupFrb/5JLgFhafWv0RzApN98z5dybDAr16RQo=; h=DKIM-Signature:X-IronPort-AV:X-IronPort-AV:Received:X-ExtLoop1: X-IronPort-AV:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; b=WWOhsJs6t8eeiZ54qPIG3jZw2uPPkwb1e9ht7KK0ZNB9IgbEXCho+2cjGYHqPirKT3LHRCSQNu39bovOmvP+EREam8P2dnZP8EMUhX8LSNNqEOHLzUpp2B+oO7Y707F/y1RG62qRK2K83g41S+PcIHPnLL9HNNCBpwNb7HKgJYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=O+PRy84f; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705549004; x=1737085004; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KHaJKuupFrb/5JLgFhafWv0RzApN98z5dybDAr16RQo=; b=O+PRy84fu6Uyna07zyroGoFIyO+4FRFmOvyfyhN95XieQARk+9LSU+lj pV+w6XXMwa0NNiClCuIkKMtz1w2kWu+wBGr1U5WB0eALs0F93tQoT84hG uRXdZewblECE0aZRmy0aAVQQ0GGZykOcOyKrnAzmEgv6GD4vRsZXih0/C o3mLgkLUGB9dwE25Fj7IQ6LvcDJG5yxeSkxEXIV8+YnwbgHc1YQaUD2JH YtVQFHDG1xSUaxCby5rsQv9nM65T7+SooGCjD3K2NLGcEuO1jRCoPxHIy GGxeFmOj/0MEogk01bg5Z9NsQYMCx73CusVczelKw02eISBcEsnWzfd5F Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="7709233" X-IronPort-AV: E=Sophos;i="6.05,201,1701158400"; d="scan'208";a="7709233" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2024 19:36:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,201,1701158400"; d="scan'208";a="26346462" Received: from myalnuc.bj.intel.com ([10.238.158.152]) by orviesa002.jf.intel.com with ESMTP; 17 Jan 2024 19:36:42 -0800 From: biao.lu@intel.com To: sameo@rivosinc.com Cc: dan.j.williams@intel.com, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 0/4] tsm: Runtime measurement registers ABI Date: Thu, 18 Jan 2024 11:35:15 +0800 Message-Id: <20240118033515.2293149-1-biao.lu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240114223532.290550-1-sameo@rivosinc.com> References: <20240114223532.290550-1-sameo@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. > > All architectures supporting RTMRs expose a similar interface to their > TVMs: An extension command/call that takes a measurement value and an > 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 series > builds an architecture agnostic, configfs-based ABI for userspace to extend > 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. Hi, Samuel The ABI does not include eventlog, but eventlog is usually used with RTMR. What do you think about how to implement eventlog?