[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] Grab the EFI System Resource Table and check it
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Tue, 5 Apr 2022 19:42:16 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ebm6VtDbjwvYZQXog6NpVotRSsTpdSEoA7ajvOxoidk=; b=azz9E7O7pa+EQN+z44YhNxvYu9Qu/x1HBYf0dKub53gSCWw879uuE8esdcc4wMUb9GH/mfmhIHYAqoiXyaeO0jsb9wfdFVM1CDz4v9r55U3i5IbhqWRtoelpr/RpnMmslh+eBZMkcD26Kfpu25O5MIu3audv/QTsQNWVoyp+pEYkYFAx4TNeJ8qu06rmIwxluANoDOnDdEvRw//uDgw/6eloAhK+TxRtcKVVkeQHcNSFKk09r8F0yUcYa/Q5qHoYbACqwqYUuZCn+JZ69GmNwV4S4RMyCYPLJK+QR5ctIODMs8xieheln8/UGV6FXjUKBNAoB3rqCcpvv6HVRWNqxA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lp6Ny1qfewWNy37nSjifpLbLLToBOA03rEcXXVDBsqNFMckQA6WzY3DJE1oOJ4LoSEcZsjqCuTtNoCVa2/t8cQ0vCnPMFTZr2UCN5M0jmBe84VjutcHUlgoAn6Kk1XdlfCVLy8LCV4qJQAXt2f5SzGKUdj9ACGQRr1tl7bI5UhUD25RBJoqHhdafe0E3vYJsfKwoX6WCE7LUntvG2jHVWAlb/HtKOmqAgfQKLjpffqMIqXXbo/M9c6rZrVNMAEzFVa5SLZ+uM7JXhNgXDpjFFOCezQO0+Z9sTsOvuuh39osl9SC4iQ8rmFibgCNPgSyJ3CNCIz0ufUJgzwbRtjHuJw==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 05 Apr 2022 19:42:57 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHYRh5pIZEBfe5HzkWcQzrtRd3oyazfnIKAgAIb/wCAAAXCgA==
- Thread-topic: [PATCH v2] Grab the EFI System Resource Table and check it
> On 5 Apr 2022, at 20:21, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>
> On Mon, 4 Apr 2022, Luca Fancellu wrote:
>>> On 2 Apr 2022, at 00:14, Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
>>> wrote:
>>>
>>> The EFI System Resource Table (ESRT) is necessary for fwupd to identify
>>> firmware updates to install. According to the UEFI specification §23.4,
>>> the table shall be stored in memory of type EfiBootServicesData.
>>> Therefore, Xen must avoid reusing that memory for other purposes, so
>>> that Linux can access the ESRT. Additionally, Xen must mark the memory
>>> as reserved, so that Linux knows accessing it is safe.
>>>
>>> See https://lore.kernel.org/xen-devel/20200818184018.GN1679@mail-itl/T/
>>> for details.
>>>
>>> Signed-off-by: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
>>
>> Hi,
>>
>> I’ve tested the patch on an arm machine booting Xen+Dom0 through EFI,
>> unfortunately
>> I could not test the functionality.
>
> I understand you couldn't test ESRT but did the basic Xen+Dom0 boot via
> EFI on ARM work?
Yes, I realise now I should have added *and it works* before the comma, without
it the sentence is
misleading.
Cheers,
Luca
|