From nobody Mon Feb 9 09:16:35 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44550+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1564415898; cv=none; d=zoho.com; s=zohoarc; b=g4Q5EiAZZ7pLnIaa/pQmMhPizvFNQdtvv1B8NZwa2ZNRcgrzyEHLLtH1U0doWDypPySRbmjfOI7B7JKvqtF+zkR8y4obDOR4Y1qcJrEEfdPAiWjVDFQwgIy8sGXHNzhGUFHg6NCR0CADZ64zNw+KuUqKa9HjzOp8/ULIYm2YDOw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564415898; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=h0ODAqTujA4x8s+gBo9SQaSZOB9NqPmazDF8nyAEwMs=; b=Jnr2229lpffPUPHq6VKzefslyNEfEKtRSFJFvZBrL5V7SVpY7fZ26/v9hi9xAnyfk6Qce+HQMN66otSH7hfqrPuKujfRVF3Tv9DYuQ9sgvsquyFCXfrTkCcNg9jxZhvY3dNix+R/qtkjPSmH2NgRdi22xUTqeNbEW6+ajdNDcF4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44550+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 156441589880145.26186077596242; Mon, 29 Jul 2019 08:58:18 -0700 (PDT) Return-Path: X-Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by groups.io with SMTP; Mon, 29 Jul 2019 08:58:17 -0700 Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+44550+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of anthony.perard@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of anthony.perard@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: BZNIgitR2hz8Jve4CWcQw+g71IGTzDMyyKPEgY7/A6zzEe8w37VxKrFdZNBCkvjQeFyZYCqNaL sAZzhgTlzmXHVu+I3IjESrqS4Kk/Ly33+p18zU9FFZP/shosG5x+fnSZO7VtYQpeMCuUTeK3Yf LLacKGqD11sk7OQUQGI6yg4RwBNjkFZ+qHup7uJ9rlEtc6qQArh354J+8tv8OnbTboWUAOBSFp 0Rn6T6kYW42SIQtJpFN/eJczMWKINc5C1eTaPgO8RAn85u3X7pHnsNowf0QeXxUfUtuz+P3lT0 Y08= X-SBRS: 2.7 X-MesageID: 3565747 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,323,1559534400"; d="scan'208";a="3565747" From: "Anthony PERARD" To: CC: Julien Grall , , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Anthony PERARD Subject: [edk2-devel] [PATCH v4 20/35] OvmfPkg/XenPlatformPei: Introduce XenPvhDetected Date: Mon, 29 Jul 2019 16:39:29 +0100 Message-ID: <20190729153944.24239-21-anthony.perard@citrix.com> In-Reply-To: <20190729153944.24239-1-anthony.perard@citrix.com> References: <20190729153944.24239-1-anthony.perard@citrix.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,anthony.perard@citrix.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1564415898; bh=h0ODAqTujA4x8s+gBo9SQaSZOB9NqPmazDF8nyAEwMs=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=lDCSFfYg0wpizJDwtptCEoxZBWivAsXQ4NE7IW4tNmSHpa0WPRr9PEhZ0eFLx8F3wa3 7ztzSV5JIJhE007VF1G9uc4vAeqSyMmblDhnHso03H0M99WOz/PD9cvoXluoQnlD6SvaR vhe0QapQuCRCSoamskPlwoge2h9/aHFhoJo= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" XenPvhDetected() can be used to figure out if OVMF has started via the Xen PVH entry point. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1689 Signed-off-by: Anthony PERARD Acked-by: Laszlo Ersek --- OvmfPkg/XenPlatformPei/Platform.h | 5 +++++ OvmfPkg/XenPlatformPei/Xen.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/OvmfPkg/XenPlatformPei/Platform.h b/OvmfPkg/XenPlatformPei/Pla= tform.h index 4a80057bdc..db9a62572f 100644 --- a/OvmfPkg/XenPlatformPei/Platform.h +++ b/OvmfPkg/XenPlatformPei/Platform.h @@ -99,6 +99,11 @@ XenHvmloaderDetected ( VOID ); =20 +BOOLEAN +XenPvhDetected ( + VOID + ); + VOID AmdSevInitialize ( VOID diff --git a/OvmfPkg/XenPlatformPei/Xen.c b/OvmfPkg/XenPlatformPei/Xen.c index 29b42b746c..71fe5de446 100644 --- a/OvmfPkg/XenPlatformPei/Xen.c +++ b/OvmfPkg/XenPlatformPei/Xen.c @@ -214,6 +214,19 @@ XenHvmloaderDetected ( return (mXenHvmloaderInfo !=3D NULL); } =20 +BOOLEAN +XenPvhDetected ( + VOID + ) +{ + // + // This function should only be used after XenConnect + // + ASSERT (mXenInfo.VersionMajor !=3D 0); + + return mXenHvmloaderInfo =3D=3D NULL; +} + VOID XenPublishRamRegions ( VOID --=20 Anthony PERARD -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44550): https://edk2.groups.io/g/devel/message/44550 Mute This Topic: https://groups.io/mt/32644077/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-