[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/4] Add a new hypercall to get the ESRT
- To: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Wed, 27 Apr 2022 10:56:34 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=hJgAgIyE6IlrZhdygWFn95C0pk/xjUHBEyq+DZ54MXk=; b=X9pM+IBRF7beYmeZY6eG6sKQiSRadjkKb/EMmVckHGgv3ydBJt9vEzbTRXN1+R/VZFcjwfDLRLl8eWifc3QXcAcgrZI8V7Siqbw4MLCTjBUGkdDSMDWlSywZjxcHQXSZfaJf5QtQbq9NhVoZH6V0I2wHIuZIwL+1krzPBQJpMEdL1gxFVbGMeAh33tsxSxdt3fwYFhqhqXhZAiJB1vGvgddBJjNXpOiLkYb0HAgL6et4lvAPEFnvBEilV9G9229mWkJGLp1VgJHD6V1HbC9piFFsMWHViXnNbFO+uZxBDnnvKFhDEjs3zYT9kYwxlmMSCMUfOZEValqGktxq0SN5iw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iCxXrY3GClAJp5Nb0zrLSy5WOoiFLpiCN9ayP3WqmUEjRY74aX8XfAxy+p0kjmR7SsGfy5hoVwJbpDI5AgIkV0gaLkyHhbaw3NlipZDNtQPdCx4Orb/VSu4lazXa9Rx2AvOAbaQVfQXbfqxLtJe8VOe2Idinvvma9nYryzhPxfnpr7VLfhtVcT/GpV8qAkMbRGDkFnCMzg7gbTn7bnSLuLxcY+0v/BM8ObuEu72jUS1iAZXAkiIVBCw2I9k43DDQSDe7WeYPZi+6CEYSzDz2oxmtEemuoK7y+7GlMaRQElhaR7ErFiVRMa4JNC3RbGLxbQfzDVYYySQNXBdwwE91iQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Wed, 27 Apr 2022 08:56:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 19.04.2022 17:49, Demi Marie Obenour wrote:
> This hypercall can be used to get the ESRT from the hypervisor. It
> returning successfully also indicates that Xen has reserved the ESRT and
> it can safely be parsed by dom0.
I'm not convinced of the need, and I view such an addition as inconsistent
with the original intentions. The pointer comes from the config table,
which Dom0 already has access to. All a Dom0 kernel may need to know in
addition is whether the range was properly reserved. This could be achieved
by splitting the EFI memory map entry in patch 2, instead of only splitting
the E820 derivation, as then XEN_FW_EFI_MEM_INFO can be used to find out
the range's type. Another way to find out would be for Dom0 to attempt to
map this area as MMIO, after first checking that no part of the range is in
its own memory allocation. This 2nd approach may, however, not really be
suitable for PVH Dom0, I think.
Jan
|