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.web11.3982.1630569897100514281 for ; Thu, 02 Sep 2021 01:04:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L8U7jVBk; 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=1630569896; 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=7ltLlwpgKs62MfI47KC0V1MbTGzzhlHc/aekz5bEJ3A=; b=L8U7jVBk1+0GMeIfPBelOsAjX+UBIjuWszql6rgg0V18KX/QS3WzcZKyqGYr3o1qf8bCab GVNfgJIP4HQxQQnrHBcWwrVAMhKTrcqAzLYdzX0EY+tUVUjDTys+DGVp9c5VT11iisWeK2 Gh/VEPxOicPcotcJLKKAENJOu7HjO1I= 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-441-Vbwq_CczPP20Vvz7YEskKg-1; Thu, 02 Sep 2021 04:04:53 -0400 X-MC-Unique: Vbwq_CczPP20Vvz7YEskKg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9C5F5106BAB7; Thu, 2 Sep 2021 08:04:50 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3858D5D9C6; Thu, 2 Sep 2021 08:04:50 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7794518000AE; Thu, 2 Sep 2021 10:04:48 +0200 (CEST) Date: Thu, 2 Sep 2021 10:04:48 +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 02/29] OvmfPkg: reserve CPUID page for SEV-SNP Message-ID: <20210902080448.jjigp62hsfo4o2h6@sirius.home.kraxel.org> References: <20210901161646.24763-1-brijesh.singh@amd.com> <20210901161646.24763-3-brijesh.singh@amd.com> MIME-Version: 1.0 In-Reply-To: <20210901161646.24763-3-brijesh.singh@amd.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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, Sep 01, 2021 at 11:16:19AM -0500, Brijesh Singh wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3275 > > Platform features and capabilities are traditionally discovered via the > CPUID instruction. Hypervisors typically trap and emulate the CPUID > instruction for a variety of reasons. There are some cases where incorrect > CPUID information can potentially lead to a security issue. The SEV-SNP > firmware provides a feature to filter the CPUID results through the PSP. > The filtered CPUID values are saved on a special page for the guest to > consume. Reserve a page in MEMFD that will contain the results of > filtered CPUID values. Is the format of the page documented somewhere? Is this snp-specific? Or could this also be used without snp? thanks, Gerd