Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3024570pxa; Tue, 18 Aug 2020 04:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlPEKLBPM1FipvlHiDzDTlKt2biLmaH2XvDGA8fr9UUWhmeMRwGezYx7on+5ZunR7Gcstn X-Received: by 2002:aa7:d1cb:: with SMTP id g11mr19078680edp.26.1597751246989; Tue, 18 Aug 2020 04:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597751246; cv=none; d=google.com; s=arc-20160816; b=zm6ijfss5qBvVDd2kQxZqsmpyJJ+SHR1qfvUOHlblX6zNTNCwmFk1t2x1ZS6AojhWu g20aH003y1GlQ86ieNohdmI6+GFQWJSYJ4SPDJ0/1cPWttZglpP5OgQYejYnlB82soUR AT4HOEZlUney5HZCbWzuUAiuBHakSlpVK6TqHTGu9FzszO8kisBFRgwJ9gmMCIqAXslE vT1Dt/hC4dl9p/EIVu3JRzp5hJ1YoJfy9MKjgXyd/zXYuCB1uEECfzQQaPSZPMl3LQzj HDOK3M6P3T437AMvqWND1axtr8Yv/Q1tDOvMYJkOXcVGg07hgz1cqK3Q6Oo+N1S5QTkY KrIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=u0/uCy/0jYOzVUR6bLEIJYYHx2p0pFbcL5YM13UhPbw=; b=C4kI6YLDNYQiU1NtPqhkBMBNQ0Tz9nfHR6+BGVbxCIhHwJeaujAD4V9fV4dgAKlIPQ /Mn4Bubz2zzWDQ/Fa6V0BS/6cyBnyPkCUqBwtyTCgFShBRf0pOeQ8Pv1zzDOT/uyrIZM 7lwChZwd2+seTN5QpPtBP63inXb3ZazXR5nfiOs9bjxGSyXdEylZyK73TqoO0qpSkhkf AA40dv6zCIOD0rz3TCT0ttPn+92vR12wGWXFOJj6HARdpeODYxAceYeeauCUmeYAj6xg nsR2I0/GQfm0qNKYgMGDXe+2mTCBWz3+gg2MPS/pWpiU1w/ikmzrKMp1/WmrdUvQHpAo KATw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="kMS/bm7h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si12078542edu.119.2020.08.18.04.47.03; Tue, 18 Aug 2020 04:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="kMS/bm7h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgHRLp1 (ORCPT + 99 others); Tue, 18 Aug 2020 07:45:27 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:58567 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbgHRLpZ (ORCPT ); Tue, 18 Aug 2020 07:45:25 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 152A0B70; Tue, 18 Aug 2020 07:45:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 18 Aug 2020 07:45:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=u0/uCy /0jYOzVUR6bLEIJYYHx2p0pFbcL5YM13UhPbw=; b=kMS/bm7h9E8v793HxF5HlS reFVSpsTJ9LRnb5in6cSE7CDNZCPkmoI5Gb+8ZAKAfCy4/Wrhlcc7S4gE842yc6t 37rYkXMerl4JbdInFdjeG0fM+9PYC4FgJViUnPTegInWSAdYPSqkjIZ6qmLv8264 RkT9CwBFBRlZFoprfE1155gOkgB8k3cifqfH3BwIB9A0lfIbsRZ/DrzzLrTbh429 hcoGlvsn/uP3JPxU/45N6XtsT6gREbGruWLEhuP1Z6WMQkCXzIpUp5xhUDHP/eSz +MAU7UqNPVXDDWS9thoX7oe+dlq0ZwZeSZ8aqfXxAdwGQecyh5KnQx1rBfz+tNeg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddtiedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpeetveff iefghfekhffggeeffffhgeevieektedthfehveeiheeiiedtudegfeetffenucfkpheple durdeigedrudejtddrkeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsg drtghomh X-ME-Proxy: Received: from mail-itl (ip5b40aa59.dynamic.kabel-deutschland.de [91.64.170.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 512F23280065; Tue, 18 Aug 2020 07:45:21 -0400 (EDT) Date: Tue, 18 Aug 2020 13:45:18 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Ard Biesheuvel Cc: linux-efi , norbert.kaminski@3mdeb.com, xen-devel@lists.xenproject.org, open list Subject: Re: [PATCH] efi: discover ESRT table on Xen PV too Message-ID: <20200818114518.GA226001@mail-itl> References: <20200816001949.595424-1-marmarek@invisiblethingslab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cWoXeonUoKmBZSoM Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] efi: discover ESRT table on Xen PV too On Mon, Aug 17, 2020 at 10:16:07AM +0200, Ard Biesheuvel wrote: > > @@ -331,7 +333,8 @@ void __init efi_esrt_init(void) > > > > end =3D esrt_data + size; > > pr_info("Reserving ESRT space from %pa to %pa.\n", &esrt_data, = &end); > > - if (md.type =3D=3D EFI_BOOT_SERVICES_DATA) > > + > > + if (efi_enabled(EFI_MEMMAP) && md.type =3D=3D EFI_BOOT_SERVICES= _DATA) > > efi_mem_reserve(esrt_data, esrt_data_size); > > >=20 > This does not look correct to me. Why doesn't the region need to be > reserved on a Xen boot? The OS may overwrite it otherwise. In case of Xen, it is Xen responsibility to do that. Otherwise even if dom0 would not use it, Xen could allocate that physical memory to another guest. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl87v04ACgkQ24/THMrX 1ywRDAgAgL6lTfIrcAbuddaDfuNoozejb/lFN0VlxjT6NKiJX9lpQRA/YRCe1TaL xq6ELDuC0y9T7tn8smiyhnZ4t1oXKvk85uQBGfozl2vW2Zb6EEsNQOwa7HQF2Eh0 xvhMtxHrFWtWQk+KT0cVHnQHQ5lkNh0V4ARPUjN8Cbb4g285XMMo0DHzUYYUJOxj 55eRZbrVZhCiQHgAXDcdjJVrhCoCEfXWhS9L++HWcCnR42elRBuaX5Mrzx6PrYIT xnWW37aUUO42wIeRiMw9unqAbyB6V34ApjF1zGGgvCKQDRES2I2mg7EidBkmMZaO fzRSp3FZxlTusI1ZV8EFQ+uAEAdEdg== =wVff -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--