From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.7879.1646140375218699765 for ; Tue, 01 Mar 2022 05:12:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BeycCiQK; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646140374; 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=yP72prfhnEuEjNum/+Sswg8rBIajIiCigTUX/pN/QjE=; b=BeycCiQKK5qDbg8R9DagwQ40iar6roXLOOUbsZ1/p/oOb0+N90ICbdbEWi/Z2eCGusv5dU MFkzjhcdx4OW8gEkpbKygDQ4Hfd13kTwlKmZ9p3CagAln/hq4ItJrMYVS8tbnM51JKdzOm 8gN9P+B+vuUFbIpxXz5L2vRj14Yh+zs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-65-qvK1ohlHORyKXSAd-W2kVQ-1; Tue, 01 Mar 2022 08:12:51 -0500 X-MC-Unique: qvK1ohlHORyKXSAd-W2kVQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3B2F0801AB2; Tue, 1 Mar 2022 13:12:49 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.195.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0027F105501A; Tue, 1 Mar 2022 13:12:48 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4E77D180039D; Tue, 1 Mar 2022 14:12:47 +0100 (CET) Date: Tue, 1 Mar 2022 14:12:47 +0100 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 V7 28/37] OvmfPkg: Update PlatformInitLib for Tdx guest to publish ram regions Message-ID: <20220301131247.ftjluuscnycli2v2@sirius.home.kraxel.org> References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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 On Mon, Feb 28, 2022 at 03:21:00PM +0800, Min Xu wrote: > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 > > In Tdx guest, the system memory is passed in TdHob by host VMM. So > the major task of PlatformTdxPublishRamRegions is to walk thru the > TdHob list and transfer the ResourceDescriptorHob and MemoryAllocationHob > to the hobs in DXE phase. > > MemoryAllocationHob should also be created for Mailbox and Ovmf work area. > > Another update is in PlatformAddressWidthInitialization. The physical > address width that Tdx guest supports is either 48 or 52. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: Brijesh Singh > Cc: Erdem Aktas > Cc: James Bottomley > Cc: Jiewen Yao > Cc: Tom Lendacky > Cc: Gerd Hoffmann > Signed-off-by: Min Xu Acked-by: Gerd Hoffmann