37 lines · plain
1What: /sys/firmware/efi/runtime-map/2Date: December 20133Contact: Dave Young <dyoung@redhat.com>4Description: Switching efi runtime services to virtual mode requires5 that all efi memory ranges which have the runtime attribute6 bit set to be mapped to virtual addresses.7 8 The efi runtime services can only be switched to virtual9 mode once without rebooting. The kexec kernel must maintain10 the same physical to virtual address mappings as the first11 kernel. The mappings are exported to sysfs so userspace tools12 can reassemble them and pass them into the kexec kernel.13 14 /sys/firmware/efi/runtime-map/ is the directory the kernel15 exports that information in.16 17 subdirectories are named with the number of the memory range::18 19 /sys/firmware/efi/runtime-map/020 /sys/firmware/efi/runtime-map/121 /sys/firmware/efi/runtime-map/222 /sys/firmware/efi/runtime-map/323 ...24 25 Each subdirectory contains five files:26 27 ========= =========================================28 attribute The attributes of the memory range.29 num_pages The size of the memory range in pages.30 phys_addr The physical address of the memory range.31 type The type of the memory range.32 virt_addr The virtual address of the memory range.33 ========= =========================================34 35 Above values are all hexadecimal numbers with the '0x' prefix.36Users: Kexec37