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.7027.1634201942106617934 for ; Thu, 14 Oct 2021 01:59:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WdQqWRmw; 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=1634201941; 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=Qyxy8hkSaPWDIQ79VHfKh1QvpIWhcACZYM+LulDIQy8=; b=WdQqWRmw59IbGNZTRxx9Ld5+Ty+0LBIZYszC8e/NGhgk2j9InznmvOdLjXoLp5PjO6S5D7 zczTS9wNgIrwD2hExVQgfainmXRjXVRKFaV+FIlLpztrXVzu2mq8FZOztbPb7QpSUCYo6P z+HgkJPcyRgdgIR0u7pKAQ5MhNw7FeA= 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-49-v5Y_Hvl4MBqxO26AoviHvg-1; Thu, 14 Oct 2021 04:58:56 -0400 X-MC-Unique: v5Y_Hvl4MBqxO26AoviHvg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2858A5074B; Thu, 14 Oct 2021 08:58:54 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D5D860CC9; Thu, 14 Oct 2021 08:58:53 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id AEB7A18007AC; Thu, 14 Oct 2021 10:58:51 +0200 (CEST) Date: Thu, 14 Oct 2021 10:58:51 +0200 From: "Gerd Hoffmann" To: Brijesh Singh Cc: devel@edk2.groups.io, James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Erdem Aktas , Michael Roth Subject: Re: [PATCH v9 30/32] OvmfPkg/PlatformPei: mark cpuid and secrets memory reserved in EFI map Message-ID: <20211014085851.e5xtspfcyz75lgog@sirius.home.kraxel.org> References: <20211013165713.727815-1-brijesh.singh@amd.com> <20211013165713.727815-31-brijesh.singh@amd.com> MIME-Version: 1.0 In-Reply-To: <20211013165713.727815-31-brijesh.singh@amd.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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 Wed, Oct 13, 2021 at 11:57:11AM -0500, Brijesh Singh wrote: > When SEV-SNP is active, the CPUID and Secrets memory range contains the > information that is used during the VM boot. The content need to be persist > across the kexec boot. Mark the memory range as Reserved in the EFI map > so that guest OS or firmware does not use the range as a system RAM. Why is this needed? Isn't the complete firmware memory tagged as reserved anyway? take care, Gerd