From nobody Fri Sep 20 16:43:07 2024 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+43292+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562252269; cv=none; d=zoho.com; s=zohoarc; b=AXtdQKOo9sRc4klMz1YheG8GA353f3/ynji+CxuFFnURf/fzj3ypkkL0xnSUAD0Yez4nKlPMum0JgMuwH0j3zc0EpSg1jwiSJVMIp8/7J7W1M3HIqinf/Kj6dJvPb/Idrp/Gto74PHPRLGy+xBSRlwRszSvMdJ5bobRDcoihDQI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562252269; 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=V+XC4rGnL4MQsbf3LKsFb93AG8h9Tj+f433tm+kiLNs=; b=CEmJhxZrXsi00R4ztN1xPAbp/wMiIRjm5ehT+olOoGDwKKUElTUfCzBHkIuVl3XdTGcd9Wmr7pLzb1Y37F+Y5ZlVJdjsShziJ8NUIUQmPh7w7ibPh3R3psASTK8J6P+42ADkr7ps8oWM41p3xpIhg1ztO0HIIOo2qoA16dzLxC0= 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+43292+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562252269799747.5595019521713; Thu, 4 Jul 2019 07:57:49 -0700 (PDT) Return-Path: X-Received: from esa5.hc3370-68.iphmx.com (esa5.hc3370-68.iphmx.com [216.71.155.168]) by groups.io with SMTP; Thu, 04 Jul 2019 07:57:49 -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+43292+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: None (esa5.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=esa5.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.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=esa5.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 (esa5.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=esa5.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: +Q0Ej0ECeYwu12HOewgk2vP0fcb4PA2T2D66kg5pspS7Xbh1GakkPvOVpOyNEfb68+6POoeb7T /m1WnULDRb/jMpiNcWQHEOHn079axzH3Q7ajkOFPAmcFw+xqFIWR7z49ZMaDHRwGljpjMMKcjO GKebjm/UEqbaR/hr010HQEAGvfyh53ACaqXsHQxwsYN569ToFBMoXXgWC4Wz9YIPClYB4FU9kW oMPdFcJlNdhPjGgj7brIV/6q0v4+SYCBLLV4Y2cQIPu1ep6te/HUKoJOpPzoRPUv0X44XQeQ2d BXI= X-SBRS: 2.7 X-MesageID: 2623832 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,451,1557201600"; d="scan'208";a="2623832" From: "Anthony PERARD" To: CC: , Ard Biesheuvel , Jordan Justen , Laszlo Ersek , Julien Grall , Anthony PERARD Subject: [edk2-devel] [PATCH v3 18/35] OvmfPkg/XenPlatformPei: Introduce XenHvmloaderDetected Date: Thu, 4 Jul 2019 15:42:16 +0100 Message-ID: <20190704144233.27968-19-anthony.perard@citrix.com> In-Reply-To: <20190704144233.27968-1-anthony.perard@citrix.com> References: <20190704144233.27968-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=1562252269; bh=oXTOTrXzRduGZGFDmT1y31l3tPMXa0C+BYH59ocvbic=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=q0RDybngMRXYC/LU8ChIH4gK0sJci2+3+ScapdKnsgcGHEpdu3lTjMJP6fZaX259Y0T 5EDoTjjl+zgmS5g5eviUITp3wff93+jCmoT+ldWC/RzFL3TGmKZPMSIyX3TaLmJV8TP2C hmnHk1o9X0Gl4CeMdxHinsdSibytLdYg9Rg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" This new XenHvmloaderDetected() return true if the hvmloader firmware has runned before OVMF. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1689 Signed-off-by: Anthony PERARD Acked-by: Laszlo Ersek --- Notes: v3: - Added one sentence in the commit message. OvmfPkg/XenPlatformPei/Platform.h | 5 +++++ OvmfPkg/XenPlatformPei/Xen.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/OvmfPkg/XenPlatformPei/Platform.h b/OvmfPkg/XenPlatformPei/Pla= tform.h index 77427496c0..925df31f88 100644 --- a/OvmfPkg/XenPlatformPei/Platform.h +++ b/OvmfPkg/XenPlatformPei/Platform.h @@ -89,6 +89,11 @@ XenDetect ( VOID ); =20 +BOOLEAN +XenHvmloaderDetected ( + VOID + ); + VOID AmdSevInitialize ( VOID diff --git a/OvmfPkg/XenPlatformPei/Xen.c b/OvmfPkg/XenPlatformPei/Xen.c index 877d776de8..a90be7bbeb 100644 --- a/OvmfPkg/XenPlatformPei/Xen.c +++ b/OvmfPkg/XenPlatformPei/Xen.c @@ -199,6 +199,13 @@ XenDetect ( return FALSE; } =20 +BOOLEAN +XenHvmloaderDetected ( + VOID + ) +{ + return (mXenHvmloaderInfo !=3D NULL); +} =20 VOID XenPublishRamRegions ( --=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 (#43292): https://edk2.groups.io/g/devel/message/43292 Mute This Topic: https://groups.io/mt/32308712/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-