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.133.124]) by mx.groups.io with SMTP id smtpd.web11.6938.1634200961242943185 for ; Thu, 14 Oct 2021 01:42:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XWjbWl+Y; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634200960; 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=rWRst/ZcqgdozCgwOc2x0ut4/2gDawVf5TwqkMSukzA=; b=XWjbWl+YKUjcRVMxUUYYpC/K4GLzjNiIVHyFF1AdLknWh4ziV7CueV9+24PzdnFZ5Mg2Ar ChQmjohs6a98obIN5HPJMVdU8fDd780PXIxQ8cG0isEUWiAkV3OCMycXlLYKo7bytSC7kg ZADmqLHxfm47hlp3TM8cDiJ/F8N1V8U= 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-38-HubdlYdDPQGvLwsiFEdr9w-1; Thu, 14 Oct 2021 04:42:37 -0400 X-MC-Unique: HubdlYdDPQGvLwsiFEdr9w-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 5003E8042CC; Thu, 14 Oct 2021 08:42:35 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0ACE15DA60; Thu, 14 Oct 2021 08:42:35 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E4EC618007AC; Thu, 14 Oct 2021 10:42:32 +0200 (CEST) Date: Thu, 14 Oct 2021 10:42:32 +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 , Ray Ni , Rahul Kumar , Eric Dong Subject: Re: [PATCH v9 23/32] UefiCpuPkg: add PcdGhcbHypervisorFeatures Message-ID: <20211014084232.vil7n2ae7te5wr43@sirius.home.kraxel.org> References: <20211013165713.727815-1-brijesh.singh@amd.com> <20211013165713.727815-24-brijesh.singh@amd.com> MIME-Version: 1.0 In-Reply-To: <20211013165713.727815-24-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, Oct 13, 2021 at 11:57:04AM -0500, Brijesh Singh wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3275 > > Version 2 of the GHCB specification added a new VMGEXIT that the guest > could use for querying the hypervisor features. One of the immediate > users for it will be an AP creation code. When SEV-SNP is enabled, the > guest can use the newly added AP_CREATE VMGEXIT to create the APs. > > The MpInitLib will check the hypervisor feature, and if AP_CREATE is > available, it will use it. > > See GHCB spec version 2 for more details on the VMGEXIT. Acked-by: Gerd Hoffmann take care, Gerd