Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
efi: make efi_mem_type() and efi_mem_attributes() work on Xen PV
Xen doesn't give direct access to the EFI memory map, but provides a hypercall interface for it. efi_mem_desc_lookup() was already adjusted in aca1d27ac38a "efi: xen: Implement memory descriptor lookup based on hypercall" to (optionally) use it. Now make efi_mem_type() and efi_mem_attributes() use common efi_mem_desc_lookup() too. This also reduces code duplication a bit. efi_mem_type() retains separate check for -ENOTSUPP error case (even though no caller seems to rely on this currently). Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> [ardb: Drop erroneous 'const' qualifier] Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Author Marek Marczykowski-Górecki Committer Ard Biesheuvel Date (Mar 10, 2026, 8:56 PM UTC) Commit
Copy SHA
Parent 1f318b96 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681