Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2853603rwb; Thu, 29 Sep 2022 16:23:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6YfM6kLEhhzVICe5dGro9mnQd0a1PjGAGna2qG/eHlVmQz5eV1rUhAc/9LWtC6uClRSFWk X-Received: by 2002:a05:6402:3489:b0:451:a859:8a4f with SMTP id v9-20020a056402348900b00451a8598a4fmr5389808edc.279.1664493792888; Thu, 29 Sep 2022 16:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664493792; cv=none; d=google.com; s=arc-20160816; b=N5OX5wmGtKVERQQXwCk4slbMEYGU0Hl0iZdGm8qagiZ3PlRovBrkdRAUNGQ2aWihqz By77GWJRAopjnBPP+SA2LX6ZZVjqg9ea3xZ9Kr7CMgVCKmgD6NW5tJLx6Ek9FvRWI0WU IQW3XNf1IOx5XsVGTikH23C2MhrAX6/zFG0JXSanEu7oBi/e4f8ULlOEKMp+6F5BKehO 2B6dxpKAu4P2vmft1+UvbBUthp7qu8vE4bwIJxstzt1rYytRHlNoAV3vWLnBRWQc1x50 k2XYhwcFSPrwQsLyo1exG8ixDkSdRZKd1T/4Nx/mLTHm7BAqsAL3Ud9P05a8rxnceGpV Wcyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=IK4PrtYlt6FvEILgVx+LXMjgInjbFPmYscTeYJuAF2k=; b=p5+XC+vZLFZsTvKscgZ45gnrDoC0+n6jkH4MXWFYKKyxlUYulBWa4qBN1/XcgmbVui 1ncpxc2opiTIsMoDEYGZn0Fazd569WjxWfa/pUBKG/fNDPy2MN7U1DD/2aRZhtxymN5e 6ZA60CbfFa1mwtoS5vQ43LrPMQ0vYLO5XjYE4a07QOEmRCKN3HA1D2qxmtCMvjyjePCB /erkw7XMJ+wzqNwE5CIfd0vKcfR/LXKmc0WEgZ2mzLEVnCJwuEMCV1liX/ltbHEhjn5S +6MjVbCliUDU89BJvxnNbiRENBTwFsN/QDC25MbL9PImx/vg/+36JmHIAf/3rqbaLV4M 9ujg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm2 header.b=B9FYF+x8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BgAAD495; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a056402358a00b00456f44e1e96si873299edc.221.2022.09.29.16.22.47; Thu, 29 Sep 2022 16:23:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm2 header.b=B9FYF+x8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BgAAD495; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbiI2XCo (ORCPT + 99 others); Thu, 29 Sep 2022 19:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiI2XCm (ORCPT ); Thu, 29 Sep 2022 19:02:42 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0926312BDA8; Thu, 29 Sep 2022 16:02:40 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8D5E35C00CD; Thu, 29 Sep 2022 19:02:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 29 Sep 2022 19:02:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :sender:subject:subject:to:to; s=fm2; t=1664492558; x= 1664578958; bh=IK4PrtYlt6FvEILgVx+LXMjgInjbFPmYscTeYJuAF2k=; b=B 9FYF+x8IemmpwNug/0+PvLzlGj142TfSnr3GFIaTbQEEBVeAGSiXBQsyJCUBywQ6 DA1gf7WDSj5bCP1VwD7f1C9nrK3zoVs0t17lcksaa2NuzFjRAcRzlczrQ+e0bZKx SJZJbtH5X7oOnM7AXIsCuSsR7s0KQKKjHC7xJSHO95HN+kBUvPpa4p8Vtp4ZIqW2 iQRQrP/Hz5aaTUyDUx5wd1HJUT5KkbfUEezbRAtxScWhUFux1j+JJsD/RLFJnpY3 yt3EHXZuQXGJl8XImdkwRDa8AfNsOi8jxGfxiqrUBuM21w2CEtzrbZUs7xoD2eIu BU5pvDRNCENa+/RHjjMTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1664492558; x=1664578958; bh=IK4PrtYlt6FvEILgVx+LXMjgInjbFPmYscT eYJuAF2k=; b=BgAAD495EGOd59wToNbmIlyZc+H5Op0eAmRs3YQq09AIP9WKGj5 gEzKsOri8EQ/012E7gggifcBkirf7+UN66UYNn944kpkoPNguV9ZPmRwVdGwjkKF MPJ2w+s1nzG7ICpKRWeTfVzoDPjfG7kIkgXjZZo4vqLrjvEKMxYWj61HB7snTCw8 oSxHyUw0WpmPJ/Gj0NtrYGgdMqJR7K6uYwto7UjUaH/zIX2tgnR7al6h/xKbxpKY 9HHOVuuIgf9M27oekogmgGG96eyJZHoLi5+z9LfIiFIYklR5kLbBylJlXzGREWAX fWxM9MkrjRQB2L+TV/ofL0bHEQSCZ9xwFyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehuddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepffgvmhhiucfo rghrihgvucfqsggvnhhouhhruceouggvmhhisehinhhvihhsihgslhgvthhhihhnghhslh grsgdrtghomheqnecuggftrfgrthhtvghrnhepvdefgeekvdekgfffgeekhfeijedtffek hefhleehfeejueetgfelgefgtdevieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepuggvmhhisehinhhvihhsihgslhgvthhhihhnghhslhgr sgdrtghomh X-ME-Proxy: Feedback-ID: iac594737:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Sep 2022 19:02:37 -0400 (EDT) From: Demi Marie Obenour To: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Ard Biesheuvel , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Cc: Demi Marie Obenour , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: [PATCH v4 0/2] EFI improvements for Xen dom0 Date: Thu, 29 Sep 2022 19:02:02 -0400 Message-Id: X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes EFI table processing in Xen dom0 and adds ESRT support in that configuration. Changes since v3: - Check location of all configuration tables, not just the ESRT. - Move most Xen-specific code to drivers/xen/. - Allow configuration tables to be in EFI_ACPI_RECLAIM_MEMORY. Demi Marie Obenour (2): Avoid using EFI tables Xen may have clobbered Support ESRT in Xen dom0 drivers/firmware/efi/efi.c | 8 ++++--- drivers/firmware/efi/esrt.c | 43 ++++++++++++++++++++++++++----------- drivers/xen/efi.c | 35 ++++++++++++++++++++++++++++++ include/linux/efi.h | 9 ++++++++ 4 files changed, 79 insertions(+), 16 deletions(-) -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab