public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]x86 efi: do not export efi runtime map in case old map
@ 2014-05-30  3:20 Dave Young
  2014-05-30  5:54 ` Dave Young
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dave Young @ 2014-05-30  3:20 UTC (permalink / raw)
  To: matt.fleming, bp, linux-kernel, linux-efi, vgoyal


For ioremapped efi memory aka old_map the virt addresses are not persistant
across kexec reboot. kexec-tools will read the runtime maps from sysfs then
pass them to 2nd kernel and assuming kexec efi boot is ok. This will cause
kexec boot failure.

To address this issue do not export runtime maps in case efi old_map so
userspace can use no efi boot instead.

Signed-off-by: Dave Young <dyoung@redhat.com>
---
 arch/x86/platform/efi/efi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 3781dd3..4d36932 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -919,6 +919,9 @@ static void __init save_runtime_map(void)
 	void *tmp, *p, *q = NULL;
 	int count = 0;
 
+	if (efi_enabled(EFI_OLD_MEMMAP))
+		return;
+
 	for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
 		md = p;
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-02 11:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30  3:20 [PATCH]x86 efi: do not export efi runtime map in case old map Dave Young
2014-05-30  5:54 ` Dave Young
2014-05-30  6:08   ` Simon Horman
2014-05-30  6:17     ` Dave Young
2014-05-30  7:52 ` Borislav Petkov
2014-05-30 12:59 ` Vivek Goyal
2014-06-02 11:23 ` Matt Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox