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.web08.4186.1630570842050545738 for ; Thu, 02 Sep 2021 01:20:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ab8xP/OC; 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=1630570841; 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=NQKk194HXWJVI7YkaQ2xknLy0JfZaB5tLWG7TOetEHc=; b=ab8xP/OCG0p7c8LQxxfO4zfTLhUo9tjni6gTv5OAcX3zd/vh9lyNBazTHuNoK0qI6f/+nB 6GW4IgS0R2Nz/pcT4lyAAd+P4HzSWDCeYMoEAmWme8EZYQP5IhSywYFVdn04zDKK0pizf+ sDRcqtBLOpuoaJ579ETVCHepwch7eyk= 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-85-RolqHg46M3e3oJgLjEnTaQ-1; Thu, 02 Sep 2021 04:20:34 -0400 X-MC-Unique: RolqHg46M3e3oJgLjEnTaQ-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 D886A195D582; Thu, 2 Sep 2021 08:20:31 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 94AE578C37; Thu, 2 Sep 2021 08:20:31 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id F215D18000AE; Thu, 2 Sep 2021 10:20:29 +0200 (CEST) Date: Thu, 2 Sep 2021 10:20:29 +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 v6 06/29] OvmfPkg/ResetVector: pre-validate the data pages used in SEC phase Message-ID: <20210902082029.tfdt4s5s76qknpiq@sirius.home.kraxel.org> References: <20210901161646.24763-1-brijesh.singh@amd.com> <20210901161646.24763-7-brijesh.singh@amd.com> MIME-Version: 1.0 In-Reply-To: <20210901161646.24763-7-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 Hi, > During the guest creation time, the VMM encrypts the OVMF_CODE.fd using > the SEV-SNP firmware provided LAUNCH_UPDATE_DATA command. In addition to > encrypting the content, the command also validates the memory region. > This allows us to execute the code without going through the validation > sequence. Hmm, tdx must handle this too. > + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpHypervisorPreValidatedStart|0x0|UINT32|0x56 > + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpHypervisorPreValidatedEnd|0x0|UINT32|0x57 So maybe we should drop the "Snp" from the name here ... > ; GUID (SEV-SNP boot block): bd39c0c2-2f8e-4243-83e8-1b74cebcb7d9 > ; > sevSnpBootBlockStart: > + DD SNP_HV_VALIDATED_START > + DD SNP_HV_VALIDATED_END ... and store the range which needs validation in another, not snp-specific block? Jiewen? Min? take care, Gerd