[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] Use EfiACPIReclaimMemory for ESRT


  • To: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 12 Oct 2022 08:19:37 +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=GoYfSbVMVBfFTdAfTBzG6lRq8XVvK8vP78Mm2MvdZ2w=; b=QfixR0YjQt75TdshC5hx/80tiMoOrmUlA+rytShNsxYCMJ5GKmxtOTQUwcxL8foCTXOlI56gD4usY2XSOrM+W19PEukGvoJxFB3c5smB5nGhPeUANQ3A16flX3/MUfsPPoK8B0vMeABO7H389elRn6gC/Cr47MlAFJkmokFxtrmm5IRqtphglK5tCRnmvX+NLm6IUwV5BzIzFsK/DYQklM6rvkw7ZWisG3x5WTkgb52fVRIR64VYeeJGJZEtMS7Qy5eWqroGlTyxt+6+pk3ltM7B+qd6FufH7lRDVZOCMMqUfB9DTY6AZrmCGirTzp5e45urHK2lTBYFIAKmg8vYog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nWNHtTTpJW4wlIRFKPIqCv+4M6vRkMelQCewCg8cwmJfbLh5GoUNmn38SLGHwOngg4diHxQcm7C8GE1roRPr5n/lZImJtEK4KLs2LN7WGmvYwtn55HvOnxyh0AaJ2Lsq8dGwgHrjbZ29XB0HPytLKHmIFDJ7wH68nI4LkPocYqQv9FzYXQ7nK3jwCwWzb/wzcko5ys00GBk8i5JafRUf8k9YapdpDUKtJAD0vOY22Baz6ZohSiK++xp6Ho8zEKwwh+jFeW/yIYn5WPP3tuef04GL2adrbXrgneaqazbklKM+33yqwp3Qz7sFFx5uwa5n5HThEtmZ1rlOVwFE8s7Vuw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Ard Biesheuval <ardb@xxxxxxxxxx>, Xen developer discussion <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 12 Oct 2022 06:19:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.10.2022 18:52, Demi Marie Obenour wrote:
> On Tue, Oct 11, 2022 at 11:59:01AM +0200, Jan Beulich wrote:
>> On 11.10.2022 05:42, Demi Marie Obenour wrote:
>>> A previous patch tried to get Linux to use the ESRT under Xen if it is
>>> in memory of type EfiRuntimeServicesData.  However, this turns out to be
>>> a bad idea.  Ard Biesheuvel pointed out that EfiRuntimeServices* memory
>>> winds up fragmenting both the EFI page tables and the direct map,
>>
>> Can this statement please be made describe Xen, not Linux? Aiui at least
>> the directmap aspect doesn't apply to Xen.
> 
> Should it apply to Xen?  My understanding is that Ard’s statements
> regarding mismatched attributes refer to any kernel, not just Linux.
> You would be in a better position to judge that, though.

We run EFI runtime services functions on their own page tables (with
certain areas copied from the directmap). With EfiACPIReclaimMemory
converted to E820_ACPI we do not insert those ranges into the directmap
(i.e. no difference to EfiRuntimeServices*). At least this latter fact
means fragmentation effects - if they exist - are the same for both
types.

>>> and
>>> that EfiACPIReclaimMemory is a much better choice for this purpose.
>>
>> I think the "better" wants explaining here, without requiring people to
>> follow ...
> 
> Something like, “EfiACPIReclaimMemory is the correct type for
> configuration tables that are only used by the OS.”?

Preferably with "supposedly" inserted, unless you (or Ard) can point
out a place in the spec where this is actually written down.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.