[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM
On 06.10.2022 10:53, Roger Pau Monné wrote: > On Thu, Oct 06, 2022 at 10:40:56AM +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 it would be a bug if the Dom0 kernel tried >> to do so, bypassing Xen's memory management), hence that type's handling > > Strictly speaking I don't think dom0 needs to bypass Xen's memory > management, just overwriting the page would be bad enough for runtime > services to not work correctly I would think. Then how about: "While on x86 in theory the same would apply to EfiACPIReclaimMemory, we don't actually "reclaim" or clobber E820_ACPI memory there (and it would be a bug if the Dom0 kernel tried to reclaim the range, bypassing Xen's memory management, plus it would be at least bogus if it clobbered that space), hence that type's handling can be left alone." I didn't think the clobbering aspect needed pointing out, as the same applies to all other memory which Dom0 is able to access beyond its actual allocation. >> can be left alone. >> >> Fixes: bf6501a62e80 ("x86-64: EFI boot code") >> Fixes: facac0af87ef ("x86-64: EFI runtime code") >> Fixes: 6d70ea10d49f ("Add ARM EFI boot support") >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> >> Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx> # Arm >> Tested-By: Luca Fancellu <luca.fancellu@xxxxxxx> # Arm >> Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx> #arm > > Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Thanks. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |