Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D56FC61DB9 for ; Thu, 27 Aug 2026 03:38:05 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wzQvl-0002cv-SF; Wed, 26 Aug 2026 23:37:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wzQvj-0002cb-3k for qemu-devel@nongnu.org; Wed, 26 Aug 2026 23:37:32 -0400 Received: from mgamail.intel.com ([192.198.163.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wzQvg-0001Ug-Vp for qemu-devel@nongnu.org; Wed, 26 Aug 2026 23:37:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787801849; x=1819337849; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=gyqUU24Mn6kBuYubFJLQagdydRCgXNqdCn22v1ZF1Nc=; b=HZIs6JIN1uAJ1pqW4mPMBdkv3JOxICPuRV0PMYCZ+7En7vLW0JPn/nCC uLVTAOOFW55Mb8fAAoxzKQ1ngq3nh2RS+bI9sr5cQuadTQ1zn3mf/Y8he lsPOMYzCQxaPw2ROoYmiBmF3YWQzanoYRrSz56vwgJzR3sbCvLZEqlBZ2 sky50ldkOUc0jGunspdThp4f4XnRKJe3ASlgexlGQkbmtvYE8NLSdXPLT Fd9050McGyqunl8/mgnMWVlRCh6a0ZQBjeLzaJlMFqmY3lKGcsyMJaeTu wz7PaFVLBk/Y4WcJHKfgRkM92Ey+5qoNYE7bT1bdtE346iXbhiUS0S/Yb w==; X-CSE-ConnectionGUID: /Nigsm1UQ1qrnIQ0TXtoZw== X-CSE-MsgGUID: 9WIXUVW2QP+1Kq8RzCRFEA== X-IronPort-AV: E=McAfee;i="6800,10657,11887"; a="98893949" X-IronPort-AV: E=Sophos;i="6.25,245,1779174000"; d="scan'208";a="98893949" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2026 20:37:24 -0700 X-CSE-ConnectionGUID: Kl6ndKtfRqOTN+hJOoqnlw== X-CSE-MsgGUID: gU4nVxTqSRGcTA9lzHHhnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,245,1779174000"; d="scan'208";a="261613360" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.124.240.119]) ([10.124.240.119]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2026 20:37:23 -0700 Message-ID: <31bbab79-4ebd-44d4-879f-7bc8baca6d34@intel.com> Date: Thu, 27 Aug 2026 11:37:20 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] docs/system/i386: document TDG.VP.VMCALL and TD attestation To: Mikko Ylinen , qemu-devel@nongnu.org, Paolo Bonzini References: <20250814123144.136966-1-mikko.ylinen@linux.intel.com> Content-Language: en-US From: Xiaoyao Li In-Reply-To: <20250814123144.136966-1-mikko.ylinen@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=192.198.163.11; envelope-from=xiaoyao.li@intel.com; helo=mgamail.intel.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.016, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org + Paolo We missed this patch for a year now. Paolo, can you help get it merged? it can be applied to the latest master cleanly. On 8/14/2025 8:31 PM, Mikko Ylinen wrote: > TD attestation has been supported since the handling of > TDG.VP.VMCALL was added. However, the documentation still > states that TD attestation is future work. > > Update TDX documention to match with the code and move the TD attestation > section up to the feature configuration section. In addition, add a link > to TDX Enabling Guide that gives further details on how to setup the > platform for attestation to work. > > Fixes: 40da501d8989 ("i386/tdx: handle TDG.VP.VMCALL") > Reported-by: Benny Fuhry > Signed-off-by: Mikko Ylinen > --- > docs/system/i386/tdx.rst | 40 ++++++++++++++++++++++++++-------------- > 1 file changed, 26 insertions(+), 14 deletions(-) > > diff --git a/docs/system/i386/tdx.rst b/docs/system/i386/tdx.rst > index 8131750b64..47d8fd023f 100644 > --- a/docs/system/i386/tdx.rst > +++ b/docs/system/i386/tdx.rst > @@ -97,6 +97,28 @@ if the fixed-1 feature is requested to be disabled explicitly. This is newly > added to QEMU for TDX because TDX has fixed-1 features that are forcibly enabled > by TDX module and VMM cannot disable them. > > +TD attestation > +~~~~~~~~~~~~~~ > + > +In TD guest, the attestation process is used to verify the TDX guest > +trustworthiness to other entities before provisioning secrets to the guest. > + > +TD attestation is initiated first by calling TDG.MR.REPORT inside TD to get the > +REPORT. Then the REPORT data needs to be converted into a remotely verifiable > +TD-Quote signed by a service hosting TD-Quoting Enclave operating on the host. > + > +The guest issues TDG.VP.VMCALL which is forwarded to user space by KVM. > +QEMU handles the request and sends the REPORT further to a Quote Generation Service > +(QGS) for signing. On success, a TD-Quote is returned back to the guest. > + > +To enable TD attestation, QGS destination must be configured using a > +"quote-generation-socket" property. Intel reference TDX QGS supports the > +following socket addresses: `{"type":"unix", "path":"/var/run/tdx-qgs/qgs.socket"}` > +or `{"type": "vsock", "cid":"2","port":""}`. > + > +See TDX Enabling Guide for details on how to provision the platform for > +TD attestation to work. > + > Launching a TD (TDX VM) > ----------------------- > > @@ -112,6 +134,9 @@ split kernel-irqchip, as below: > -machine ...,confidential-guest-support=tdx0 \\ > -bios OVMF.fd \\ > > +Additional properties and their descriptions are documented in the QAPI > +schema for the 'tdx-guest' object. > + > Restrictions > ------------ > > @@ -135,19 +160,6 @@ SEAMCALLs and corresonponding QEMU change. > > It's targeted as future work. > > -TD attestation > --------------- > - > -In TD guest, the attestation process is used to verify the TDX guest > -trustworthiness to other entities before provisioning secrets to the guest. > - > -TD attestation is initiated first by calling TDG.MR.REPORT inside TD to get the > -REPORT. Then the REPORT data needs to be converted into a remotely verifiable > -Quote by SGX Quoting Enclave (QE). > - > -It's a future work in QEMU to add support of TD attestation since it lacks > -support in current KVM. > - > Live Migration > -------------- > > @@ -158,4 +170,4 @@ References > > - `TDX Homepage `__ > > -- `SGX QE `__ > +- `TDX Enabling Guide `__