public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/6] kexec kernel efi runtime support
@ 2013-10-27  3:47 dyoung-H+wXaHxf7aLQT0dZR+AlfA
  2013-10-27  3:47 ` [patch 1/6] Add function efi_remap_region for remapping to saved virt address dyoung-H+wXaHxf7aLQT0dZR+AlfA
                   ` (5 more replies)
  0 siblings, 6 replies; 37+ messages in thread
From: dyoung-H+wXaHxf7aLQT0dZR+AlfA @ 2013-10-27  3:47 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA, x86-DgEjT+Ai2ygdnm+yROfE0A,
	mjg59-1xO5oi07KQx4cg9Nei1l7Q, hpa-YMNOUZJC4hwAvxtiuMwx3w,
	James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk,
	vgoyal-H+wXaHxf7aLQT0dZR+AlfA, ebiederm-aS9lmoZGLiVWk0Htik3J/w,
	horms-/R6kz+dDXgpPR4JQBCEnsQ,
	kexec-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, bp-Gina5bIWoIWzQB+pC5nmwQ

Hi,

Here is the 1st version for supporting kexec kernel efi runtime.
Per pervious discussion I pass the 1st kernel efi runtime mapping
via setup_data to 2nd kernel. Besides of the runtime mapping
info I also pass the fw_vendor, runtime, config table, smbios
physical address in setup_data. EFI spec mentioned fw_vendor,
runtime, config table addresses will be converted to virt address
after entering virtual mode, but we will use it as physical address
in efi_init. For smbios EFI spec did not mention about the address
updating, but during my test on a HP workstation, the bios will
convert it to Virt addr, thus pass it in setup_data as well.

For fw_vendor, runtime, config table, I export them in /sys/firmware/
efi/systab, smbios is already in that file.

For efi runtime mapping I add a new directory /sys/firmware/efi/
efi-runtime-map/ like below
[dave@darkstar ~]$ tree /sys/firmware/efi/efi-runtime-map/
/sys/firmware/efi/efi-runtime-map/
├── 0
│   ├── attribute
│   ├── num_pages
│   ├── phys_addr
│   ├── type
│   └── virt_addr
├── 1
│   ├── attribute
│   ├── num_pages
│   ├── phys_addr
│   ├── type
│   └── virt_addr
[snip]
 
kexec-tools will assemble them as setup_data and pass to 2nd kernel.
I will send userspace patches as well.

Limitation is I only write support for x86_64, test on below machines:
Lenovo thinkpad t420
Dell inspiron 14 - 3421
HP Z420 workstation
Qemu + OVMF

Please help to review the patches.

The patches are based on linus tree (3.12.0-rc6+) + matt's next tree + bp's efi mapping patches
Boris's last patch can not directly apply, need a little line shifting.
--
Thanks
Dave

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

end of thread, other threads:[~2013-11-01 11:32 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-27  3:47 [patch 0/6] kexec kernel efi runtime support dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-10-27  3:47 ` [patch 1/6] Add function efi_remap_region for remapping to saved virt address dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20131027035922.776610726-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-27 11:50     ` Borislav Petkov
     [not found]       ` <20131027115038.GB21868-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28  1:25         ` Dave Young
2013-10-27  3:47 ` [patch 2/6] x86 efi: reserve boot service fix dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20131027035922.924386710-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-27 10:50     ` Borislav Petkov
     [not found]       ` <20131027105009.GA21868-fF5Pk5pvG8Y@public.gmane.org>
2013-10-27 20:30         ` Matt Fleming
     [not found]           ` <20131027203058.GE1982-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2013-10-28  1:18             ` Dave Young
     [not found]               ` <20131028011824.GD4397-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-28  8:44                 ` Borislav Petkov
     [not found]                   ` <20131028084440.GA4314-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28 10:27                     ` Matt Fleming
2013-10-27  3:47 ` [patch 3/6] Cleanup efi_enter_virtual_mode function dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20131027035923.081819853-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-28  9:32     ` Borislav Petkov
     [not found]       ` <20131028093206.GB4314-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28  9:40         ` Dave Young
     [not found]           ` <20131028094049.GC25527-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-28  9:51             ` Dave Young
2013-10-28 10:04               ` Borislav Petkov
     [not found]                 ` <20131028100402.GC4314-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28 10:10                   ` Dave Young
     [not found]                     ` <20131028101011.GF25527-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-28 10:39                       ` Dave Young
2013-10-28 11:20                       ` Borislav Petkov
     [not found]                         ` <20131028112045.GH4314-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28 11:24                           ` Dave Young
2013-10-28 14:58                             ` Borislav Petkov
     [not found]                               ` <20131028145801.GM4314-fF5Pk5pvG8Y@public.gmane.org>
2013-10-28 15:10                                 ` Dave Young
     [not found]                                   ` <20131028151048.GA14984-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-29  2:32                                     ` Dave Young
2013-10-29 13:43                                       ` Borislav Petkov
     [not found]                                         ` <20131029134302.GI10972-fF5Pk5pvG8Y@public.gmane.org>
2013-10-30  2:03                                           ` Dave Young
     [not found]                                             ` <20131030020348.GA4332-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-30 10:47                                               ` Borislav Petkov
     [not found]                                                 ` <20131030104718.GB13290-fF5Pk5pvG8Y@public.gmane.org>
2013-10-31  2:04                                                   ` Dave Young
     [not found]                                                     ` <20131031020405.GA4377-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-31  2:07                                                       ` Dave Young
     [not found]                                                         ` <20131031020714.GB4377-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-31  3:07                                                           ` H. Peter Anvin
     [not found]                                                             ` <5271C981.2050705-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-10-31 10:45                                                               ` Borislav Petkov
     [not found]                                                                 ` <20131031104535.GB10544-fF5Pk5pvG8Y@public.gmane.org>
2013-11-01  1:15                                                                   ` Dave Young
2013-10-31 10:44                                                           ` Borislav Petkov
     [not found]                                                             ` <20131031104426.GA10544-fF5Pk5pvG8Y@public.gmane.org>
2013-11-01  1:18                                                               ` Dave Young
     [not found]                                                                 ` <20131101011825.GB4378-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-11-01 11:32                                                                   ` Borislav Petkov
2013-10-27  3:47 ` [patch 4/6] export more efi table variable to sysfs dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-10-27  3:47 ` [patch 5/6] export efi runtime memory mapping " dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20131027035923.442470867-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-10-29  5:34     ` Dave Young
2013-10-27  3:47 ` [patch 6/6] passing kexec necessary efi data via setup_data dyoung-H+wXaHxf7aLQT0dZR+AlfA

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