18c2ecf20Sopenharmony_ciWhat:		/sys/firmware/efi/runtime-map/
28c2ecf20Sopenharmony_ciDate:		December 2013
38c2ecf20Sopenharmony_ciContact:	Dave Young <dyoung@redhat.com>
48c2ecf20Sopenharmony_ciDescription:	Switching efi runtime services to virtual mode requires
58c2ecf20Sopenharmony_ci		that all efi memory ranges which have the runtime attribute
68c2ecf20Sopenharmony_ci		bit set to be mapped to virtual addresses.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci		The efi runtime services can only be switched to virtual
98c2ecf20Sopenharmony_ci		mode once without rebooting. The kexec kernel must maintain
108c2ecf20Sopenharmony_ci		the same physical to virtual address mappings as the first
118c2ecf20Sopenharmony_ci		kernel. The mappings are exported to sysfs so userspace tools
128c2ecf20Sopenharmony_ci		can reassemble them and pass them into the kexec kernel.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci		/sys/firmware/efi/runtime-map/ is the directory the kernel
158c2ecf20Sopenharmony_ci		exports that information in.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci		subdirectories are named with the number of the memory range::
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci			/sys/firmware/efi/runtime-map/0
208c2ecf20Sopenharmony_ci			/sys/firmware/efi/runtime-map/1
218c2ecf20Sopenharmony_ci			/sys/firmware/efi/runtime-map/2
228c2ecf20Sopenharmony_ci			/sys/firmware/efi/runtime-map/3
238c2ecf20Sopenharmony_ci			...
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci		Each subdirectory contains five files:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci		=========   =========================================
288c2ecf20Sopenharmony_ci		attribute   The attributes of the memory range.
298c2ecf20Sopenharmony_ci		num_pages   The size of the memory range in pages.
308c2ecf20Sopenharmony_ci		phys_addr   The physical address of the memory range.
318c2ecf20Sopenharmony_ci		type        The type of the memory range.
328c2ecf20Sopenharmony_ci		virt_addr   The virtual address of the memory range.
338c2ecf20Sopenharmony_ci		=========   =========================================
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci		Above values are all hexadecimal numbers with the '0x' prefix.
368c2ecf20Sopenharmony_ciUsers:		Kexec
37