From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web09.10395.1634023354980531555 for ; Tue, 12 Oct 2021 00:22:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SCtyqHT5; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634023354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2llsRvU3g4xvUs7ub5NZUi0zcyqmyydrR/XERJiwQZ4=; b=SCtyqHT5alb/4IIDJDdPyUifeUSXBf/rFxOOPT6b26q0xzh80ZEEx6qxOrNpkXomrEY0j8 BSGsUAL30BIW4PEvpBYDfcY7/MLFRQWNFgwbtS7I0jBo4Fc/omdSSR3QyQRFjP21KdkB4T AHTDzF1jFKOsuLcSaGBld0Yvqi9G+5k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-157-EiE9EBVVP1WbNDIHZ90iiw-1; Tue, 12 Oct 2021 03:22:32 -0400 X-MC-Unique: EiE9EBVVP1WbNDIHZ90iiw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E71348015C7; Tue, 12 Oct 2021 07:22:30 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C84360853; Tue, 12 Oct 2021 07:22:30 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BBC4E1800393; Tue, 12 Oct 2021 09:22:28 +0200 (CEST) Date: Tue, 12 Oct 2021 09:22:28 +0200 From: "Gerd Hoffmann" To: Min Xu Cc: devel@edk2.groups.io, Ard Biesheuvel , Jordan Justen , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky Subject: Re: [PATCH V9 3/4] OvmfPkg: Add IntelTdxMetadata.asm Message-ID: <20211012072228.h3meki5hmw27fn32@sirius.home.kraxel.org> References: <62bb7a8bf025bce78b012c8f92d59cbd203f3674.1634005437.git.min.m.xu@intel.com> MIME-Version: 1.0 In-Reply-To: <62bb7a8bf025bce78b012c8f92d59cbd203f3674.1634005437.git.min.m.xu@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > +; - Type field means this section is of BFV. This field is designed for the > +; purpose that in some case host VMM may do some additional processing based > +; upon the section type. TdHob section is an example. Host VMM pass the > +; physical memory information to the guest firmware by writing the data in > +; the memory region designated by TdHob section. Brijesh? What are your plans? Do you want use this too? If so, then the section types need some more structure. I think best would be reserve blocks, something like 0x00 -> 0xff common types (bfv, cfv, temp_mem), 0x100 -> 0x1ff tdx (td_hob), 0x200 -> 0x2ff sev (cpuid, secrets, ...). take care, Gerd