]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Do not export efi runtime map in case old map
authorDave Young <dyoung@redhat.com>
Fri, 30 May 2014 03:20:10 +0000 (11:20 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 2 Jun 2014 11:21:59 +0000 (12:21 +0100)
commit2d45f25f9ce9337d1ef9f4f2a8b238ef5f1e0b0b
tree1c6f8efd448bd90c5dd093d8db19057366e6dce0
parentc78e6abf8d90b292bad77802a9680c71271a9334
x86/efi: Do not export efi runtime map in case old map

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>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c