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.web12.8080.1647331559601326091 for ; Tue, 15 Mar 2022 01:05:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PDWx0TKH; 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=1647331558; 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=eXfVIwyy6YJcLcGPkEPpoXJJ2dqLrU4p7Y8G4x3aWJM=; b=PDWx0TKHO0bp7KXZEsX1JZzfuS6iBs5LVFvJQZOTHBSaihp+WIMGkinNT53zym4raQx0LJ MVtEs7ucZIvRrOhOwvy8Js+wDCum+t2UUlsBbsAmdYey/oCCtzEwRPIjxme6fWaLe+WfZs p72EMMP5xJaxzdSgdU2axdfAB3hVJ9w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-3-eRkGWky8PsS82AnRaQVySw-1; Tue, 15 Mar 2022 04:05:55 -0400 X-MC-Unique: eRkGWky8PsS82AnRaQVySw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 85D671C05154; Tue, 15 Mar 2022 08:05:54 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.196.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 58D0648FB04; Tue, 15 Mar 2022 08:05:54 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 18B0918003A2; Tue, 15 Mar 2022 09:05:53 +0100 (CET) Date: Tue, 15 Mar 2022 09:05:53 +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 , Sebastien Boeuf Subject: Re: [PATCH V8 24/47] OvmfPkg/PlatformPei: Refactor InitializeRamRegions Message-ID: <20220315080553.hepyq422nttla3bb@sirius.home.kraxel.org> References: <5cf66f701073359f385e7ff28b5173555ab483c3.1647047482.git.min.m.xu@intel.com> MIME-Version: 1.0 In-Reply-To: <5cf66f701073359f385e7ff28b5173555ab483c3.1647047482.git.min.m.xu@intel.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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 Sat, Mar 12, 2022 at 09:53:49AM +0800, Min Xu wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 > > InitializeRamRegions is refactored into 3 calls: > - PlatformQemuInitializeRam > - SevInitializeRam > - PlatformQemuInitializeRamForS3 > > SevInitializeRam is not in PlatformInitLib. Because in the first stage > PlatformInitLib only support the basic platform featues. > > PlatformQemuInitializeRamForS3 wraps the code which was previously in > InitializeRamRegions (many code in 2 if-checks). > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: Brijesh Singh > Cc: Erdem Aktas > Cc: James Bottomley > Cc: Jiewen Yao > Cc: Tom Lendacky > Cc: Gerd Hoffmann > Cc: Sebastien Boeuf > Signed-off-by: Min Xu Acked-by: Gerd Hoffmann