From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7C40E7718B for ; Thu, 2 Jan 2025 16:30:26 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.864312.1275505 (Exim 4.92) (envelope-from ) id 1tTO5P-0004rT-0k; Thu, 02 Jan 2025 16:30:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 864312.1275505; Thu, 02 Jan 2025 16:30:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tTO5O-0004rM-TI; Thu, 02 Jan 2025 16:30:14 +0000 Received: by outflank-mailman (input) for mailman id 864312; Thu, 02 Jan 2025 16:30:13 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tTO5N-0004rG-L3 for xen-devel@lists.xenproject.org; Thu, 02 Jan 2025 16:30:13 +0000 Received: from fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id d559bc4a-c926-11ef-99a4-01e77a169b0f; Thu, 02 Jan 2025 17:30:10 +0100 (CET) Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 43B4A11401BA; Thu, 2 Jan 2025 11:30:09 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Thu, 02 Jan 2025 11:30:09 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jan 2025 11:30:07 -0500 (EST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d559bc4a-c926-11ef-99a4-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1735835409; x=1735921809; bh=EnrVZtCyc86uul8va4wbIgI4fjfehn1muYnUorBvgcQ=; b= KXtHBMHKf5I3s5LpxAmqOR85PAM55L1/7VkQUFmYufcHa8e+x1PlDbLchRc70+bK miYLPZW7MPbJxvt/IlzsIPod/svMsIk7zXf9grwXE7Bkg/8zHyA4gJY83jws7Goi hACiknQKUThukACEXpWFM7vY+Q06Kg0YY/suwMhGU9P+roYPPCXFT8hB9bvNrOV3 L2zzxYfNBIdP9zG+8sChxQfl0Zyg4/RwJiqc36Jt+Oq5GGsIMA6gtg+5nyzqypgS LrUGkp5nyGNC89CXhZmg1qOiwJIjfmCWlzBbcou6WOo7ccFhsBEmT/m66tG3KU/n M2T7AYuCE67j9yd0vmKMaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1735835409; x=1735921809; bh=EnrVZtCyc86uul8va4wbIgI4fjfehn1muYn UorBvgcQ=; b=itTOLTB6hKv5vmKW3nGXv+wue+sNo/OWibquZyjkC/RxVJPK0sL Phjfa2LK+GT3YN9HkS/dfYOCSC2z259HfcsFShZsJm3BknrVaFaaAIBI24FfDto7 GKOk/L5yk+HGJLwlk1hFn/OwRUJFff7UAxrKycMJ/mPzod3uBI4DZqVuI5qi96xp GSFLrTAO9SFd3GZXOgmSrMa0B2HFArsBaE1iNob0SAXCXP98EYM/HNwbuXIgbCn3 qGHsr2fgrICuS69Jb+SFvrXTGu6gDMIVV/el+i8nt1LtYO3M6M/ZWSJ7BxKejvs9 05tGpVCA5msaz/+mRnvoCOpGQTnV6LW1FLg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefvddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtjeen ucfhrhhomhepofgrrhgvkhcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomh grrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuggft rfgrthhtvghrnhepgfduleetfeevhfefheeiteeliefhjefhleduveetteekveettddvge euteefjedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomhdpnh gspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughr vgifrdgtohhophgvrhefsegtihhtrhhigidrtghomhdprhgtphhtthhopeigvghnqdguvg hvvghlsehlihhsthhsrdigvghnphhrohhjvggtthdrohhrghdprhgtphhtthhopehjsggv uhhlihgthhesshhushgvrdgtohhmpdhrtghpthhtoheprhhoghgvrhdrphgruhestghith hrihigrdgtohhmpdhrtghpthhtohepughpshhmihhthhesrghpvghrthhushhsohhluhht ihhonhhsrdgtohhmpdhrtghpthhtohepfhhrvgguihgrnhhordiiihhglhhiohestghloh huugdrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail Date: Thu, 2 Jan 2025 17:30:02 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Andrew Cooper Cc: xen-devel , Jan Beulich , Roger Pau =?utf-8?B?TW9ubsOp?= , Daniel Smith , Frediano Ziglio Subject: Re: Xen.efi "must be loaded below 4Gb" Message-ID: References: <0b4d4fa4-7d8e-444e-a4a0-f2dc677178a5@citrix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CJh7mYvvqb/9K28Z" Content-Disposition: inline In-Reply-To: <0b4d4fa4-7d8e-444e-a4a0-f2dc677178a5@citrix.com> --CJh7mYvvqb/9K28Z Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Thu, 2 Jan 2025 17:30:02 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Andrew Cooper Cc: xen-devel , Jan Beulich , Roger Pau =?utf-8?B?TW9ubsOp?= , Daniel Smith , Frediano Ziglio Subject: Re: Xen.efi "must be loaded below 4Gb" On Thu, Jan 02, 2025 at 04:26:28PM +0000, Andrew Cooper wrote: > Hello, >=20 > Forwarding a bug report from IRC from before Christmas: >=20 > --- > bit of a random question, but: has anyone had any luck booting efi > builds of Xen? over the last year or so I've tried 4.18 and 4.19, Alpine > and Fedora builds, and on a Dell PowerEdge R430 and an Optiplex 7010 > Plus, and in every case received an error that "Xen must be loaded below > 4Gb" > --- >=20 > The Xen.efi path does expect to be loaded below 4G, and does give up > rather than relocating itself. >=20 > Right now, I'm aware of at least one blocker to xen.efi being able to > relocate itself, and that is because it populates the MB1 metadata with > physical pointers into the ebmalloc[] region, which is in .bss.=C2=A0=20 What about not touching anything MB1-related in the EFI boot path? MB1 can't possibly work on EFI, right? > Fallout > related to this was the subject of c/s 0fe607b2a1 "x86/boot: Fix PVH > boot during boot_info transition period" and a protective ASSERT() includ= ed. >=20 > The ProperFix(tm) is to remove ebmalloc(), and the scratch space in the > trampoline, and instead have a range in initdata to stash the bootloader > metadata, and use virtual pointers rather than physical.=C2=A0 This also > avoids us double/triple handling the bootloader metadata, simplifying > all aspects of the startup logic. This obviously would be better --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --CJh7mYvvqb/9K28Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmd2vwoACgkQ24/THMrX 1yw8Twf8C8F8IzhFGE7yb84icLNoKHKmXtMYXkbBiz2RTT08HsxCvy1/L2p7HUX1 qa6qz9Ki3+ZHOwBCUL3dQsm3jgyiEsfb2MFVMi1CssJAY75ssyrx/Aa+utT2dp1D cTpMQ3aUWjlGczfj0UpZ+A2Hs1TF/Y2q313EOC8oQrSSiHrZrlXMOROWkJiFYb16 85I5Pej/sXTely6JecEGCeuQAZWPrfVycKCds6oy13WMI/xKy4Lq8W2z0f2Zsvxs ib9PBARTZlgsK1+QYPxYPdxuTvp70ccrD0i2SX6r+318YMj/1QqFAKqXMYC14xnV s7j/DP8AawkztUjLQrZal7odBcxBGQ== =8wzu -----END PGP SIGNATURE----- --CJh7mYvvqb/9K28Z--