From nobody Sun May 5 10:10:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77183+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77183+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1624886624; cv=none; d=zohomail.com; s=zohoarc; b=Po6wQa/dDA9lsW6Y55CtJJWl3chqH3p01rSe+FvRSlFiIJlIqeMntnSsnJy1Yz2YFiMwkR1JSwCQxus80xiVCt0nk/BbvfRgVXIVObBxUGZC3wTtyx8+5PXGvC0OQUI/GXcWL8o8ikmes1qn2TRPMPtpkYln8ULtiVc+SJ6PxtE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624886624; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=F7ElOnkVU2nnx9m+h90ezuftoZWbu2BsaCjmre2KyCM=; b=OeSn8Q4mNfN+u+ZZecGMBrKh04q0c30T1ZkhldQbWt9z7+1P9naPMZrpbwChBetgOqo/5Xxt3G55k8bWCz2ql+02L+EmnwMRsT0nEOjLQW6W4aSuTE1pk9kylZAEa7mKubNDG776csWPqDsbdttVeTFv99KcGwWb+8HTkWdopE0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77183+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1624886624396269.769142288284; Mon, 28 Jun 2021 06:23:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id P27XYY1788612x0e7WFYOETx; Mon, 28 Jun 2021 06:23:44 -0700 X-Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) by mx.groups.io with SMTP id smtpd.web11.11062.1624886623231267868 for ; Mon, 28 Jun 2021 06:23:43 -0700 IronPort-SDR: FPKZn3D9CqTO5Edi9EgIeaD3E5PWX9qmKTbu4rUYZiY/MG8th1R2qpiV9ZAwdAbeNMVxMEVL7E CHpeb4HAhAJjHH+sWCa6LFZpNo8Ccx7CJLNICkQB0RdFu96itQwXCzxYJW0mtiv/0yMvvqeB8I f9kNZrYxgztw7J1Qms5LjWehKndnvRZLuKjgeL9cACrW6EKuKk2p5gEw0ZEYjv2UdM9f5+mUXf ELcbrIZQ4n3gSBlYxW20PLCDKJb9AIEQcaBSROuzA2T8yiCuzW+b0+9A+YkpTwotXhdR1P/QlE LIQ= X-SBRS: 5.1 X-MesageID: 48709442 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:uVsONKibdn4o+CrSa7sB6gh4CHBQX6B13DAbv31ZSRFFG/Fwz/ re+MjzpiWE7wr5OUtQ5+xoV5PhfZqxz/NICMwqTNKftWrdyRqVxeNZnOjfKlTbckWUnNK1l5 0QEZSWY+eeMbEOt6fHCX6DferIruPqzEniv5a5854kd3ASV4hwqwViBkKSFVB3WwlcGYB8FJ 2S4KN81kadUGVSbN62QnEDQujdp8bWjtbnZgMLHBQq8RSJlnep77H9eiLooys2QndM27tn+X XZmwb54qmlrv66zwLRzG/V4dBXn8bs0dFOHdGLkYwULTrr4zzYHrhJSvmBpjxwq/2r6lInis PFrRs7MMR39n/Lfma65QHm0w6lyzo193r+oGXo/kfLsIj6Xj5/EcZbmo5DchzX7SMbzapBOY xwrhqki6Y= X-IronPort-AV: E=Sophos;i="5.83,306,1616472000"; d="scan'208";a="48709442" From: "Anthony PERARD via groups.io" To: CC: Laszlo Ersek , Ard Biesheuvel , Anthony PERARD , "Jan Beulich" , Andrew Cooper Subject: [edk2-devel] [PATCH] OvmfPkg/XenPlatformPei: Relocate shared_info page mapping Date: Mon, 28 Jun 2021 14:23:37 +0100 Message-ID: <20210628132337.46345-1-anthony.perard@citrix.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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 X-Gm-Message-State: 2emecH3vUWEw0RWsQVZwEq96x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1624886624; bh=F7ElOnkVU2nnx9m+h90ezuftoZWbu2BsaCjmre2KyCM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=bSBp0ivlG1PgIBNUAgh8beG4tmzxW0Hnjg26/E1scDPOl8dlybXV2seypQhrEjLOWcG /JuCL2oAyERsGcSedv2O763uIar3STbX1epZ0nc2Sq600RvgrM+iYD5FarIIINei4uaD3 eztko4wGoH+DUsbhTI77Ki+Xwku7wYjxJy0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Anthony PERARD Unfortunately, Xen isn't ready to deal with mapping at the top of the physical address space, so we relocate the mapping after the LAPIC location. See this thread about the issue with the mapping: - https://lore.kernel.org/xen-devel/f8c4151a-6dac-d87c-ef46-eb35ada07bd9@su= se.com/ The PhysicalAddressIdentityMapping() call isn't going to do anything anymore since everything under 4GB is already mapped, but there is no need to remove the call. CC: Jan Beulich CC: Andrew Cooper Signed-off-by: Anthony PERARD Acked-by: Laszlo Ersek --- OvmfPkg/XenPlatformPei/Xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/XenPlatformPei/Xen.c b/OvmfPkg/XenPlatformPei/Xen.c index a4e82b356936..9c6641895970 100644 --- a/OvmfPkg/XenPlatformPei/Xen.c +++ b/OvmfPkg/XenPlatformPei/Xen.c @@ -569,7 +569,7 @@ CalibrateLapicTimer ( EFI_STATUS Status; =20 =20 - SharedInfo =3D (VOID*)((1ULL << mPhysMemAddressWidth) - EFI_PAGE_SIZE); + SharedInfo =3D (VOID*)((UINTN)PcdGet32 (PcdCpuLocalApicBaseAddress) + SI= ZE_1MB); Status =3D PhysicalAddressIdentityMapping ((EFI_PHYSICAL_ADDRESS)SharedI= nfo); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, --=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 (#77183): https://edk2.groups.io/g/devel/message/77183 Mute This Topic: https://groups.io/mt/83844392/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-