[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 4 Oct 2022 10:06:36 +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=Pg14Yl7CperX8f+G+08CTIJV6PIA0BhTtfeWM2Vvrao=; b=chz0vfRgkxKB1Y74XpCwyCaiYi2bm9E0djoLd0wW4xm5a8jJRTSb4aLhlW8XS5MHabNPUHgjmzZmHQ1Qu5s+eBMKKQ9jzHIEPvsd7F5n/ZGMvtAZhOQtbSkOS4OvauMomMDmv8LAlqy/3VqjoTIUgTzF0Ot1Evr7lQi0RRRMWIUFXPhP3LKe32KHanfWXGf1vlNc/WdLctuXh9beMMKmzT5lybZ+3t5rNAYMV8k83wE5IW1btgZQS/LME0NV0Tgb0GrTUeuFUZBuaQuP/BNiub7iuxCNMdmnJYAkBep9ZUTSYqDeErv7OdOiTDYW/D/C9PXUjkIGv9BSH24j9xw5Sw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S4Tz6oIQjKEkXa8EFpEYNvOkaBrkZeuv6QV13+tQvaa+HbL6blEDGC7/j3IiNmSLZ5CePZ6fG2eG+huSSQLRUNnJW4tl4LgmBjKySUFNE3n7vDIdMQGqaMxGUiuQpyEn2lErArgmTwUh9ulfCc2dH1NuRJAfMoccVJN7xuM3Lqx5v5oov1+INAxywjqzsw8eoLc05YkcBosd7QzBD/J8zfx2VnfUlC3j6Gb4ESn6J8iifluh0j9u5DVtXUVx2c2+YFNjDlMfUy/jdHSspO8sFoLkH8gnEYpEMV31rLU70M2FhMvhcekSc43P04XV3bsDmEX5YDHwJcae3NIJY63XDw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
- Delivery-date: Tue, 04 Oct 2022 08:06:42 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 30.09.2022 16:28, Roger Pau Monné wrote:
> On Fri, Sep 30, 2022 at 09:50:40AM +0200, Jan Beulich wrote:
>> efi_init_memory() in both relevant places is treating EFI_MEMORY_RUNTIME
>> higher priority than the type of the range. To avoid accessing memory at
>> runtime which was re-used for other purposes, make
>> efi_arch_process_memory_map() follow suit. While on x86 in theory the
>> same would apply to EfiACPIReclaimMemory, we don't actually "reclaim"
>> E820_ACPI memory there and hence that type's handling can be left alone.
>
> What about dom0? Should it be translated to E820_RESERVED so that
> dom0 doesn't try to use it either?
I'm afraid I don't understand the questions. Not the least because I
think "it" can't really mean "dom0" from the earlier sentence.
Jan
> I guess using E820_RESERVED
> could also confuse dom0 about ACPI data placement.
>
> Thanks, Roger.
|