public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/4 v3] kexec-tools: efi runtime support
@ 2013-11-21  6:40 dyoung-H+wXaHxf7aLQT0dZR+AlfA
  2013-11-21  6:40 ` [patch 1/4 v3] build fix: include x86-linux.h in x86-linux-setup.h dyoung-H+wXaHxf7aLQT0dZR+AlfA
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: dyoung-H+wXaHxf7aLQT0dZR+AlfA @ 2013-11-21  6:40 UTC (permalink / raw)
  To: kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: mjg59-1xO5oi07KQx4cg9Nei1l7Q, linux-efi-u79uwXL29TY76Z2rM5mHXA,
	toshi.kani-VXdhtT5mjnY, matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy,
	greg-U8xfFu+wG4EAvxtiuMwx3w, x86-DgEjT+Ai2ygdnm+yROfE0A,
	James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk,
	horms-/R6kz+dDXgpPR4JQBCEnsQ, bp-Gina5bIWoIWzQB+pC5nmwQ,
	ebiederm-aS9lmoZGLiVWk0Htik3J/w, hpa-YMNOUZJC4hwAvxtiuMwx3w,
	vgoyal-H+wXaHxf7aLQT0dZR+AlfA

Hi,

This is the v3 patchset for adding efi runtime support on kexec kernel
kernel patches was sent a while ago, not yet updated in archive. 

in kexec-tools, this patchset will do below:
1. retrieve efi_info from sysfs boot_params, and fill the
x86 setup header. If kernel does not export sysfs boot_params,
still try to find them in debugfs.

2. collect data efi runtime needed:
/sys/firmware/efi/systab: smbios
/sys/firmware/efi/fw_vendor
/sys/firmware/efi/runtime
/sys/firmware/efi/config_table

/sys/firmware/efi/runtime-map/*, the phys-virt mappings in 1st kernel

3. assemble setup_data based on data get in 2) then pass it to 2nd kernel

Tested on OVMF, dell laptop, lenovo laptop and HP workstation

TODO: add functions for easily adding setup_data, arrange them as link list
because we probably will add e820 memory ranges as setup_data as well.
I do not prefer to bloat this patchset anymore, so I'd likt to address this
issue after the efi runtime issue finished unless people request.

V2 changelog:
Address comments from
Simon:
  coding style, fixed a mem leak
HPA:
  use type uint64_t instead of __uint64_t
mjg:
  do not cause regression for loading old kernel
  use xloadflags to check the bzImage support for efi.
  in case old kernel, do not pass efi_info and setup_data
  for new kernel, do not pass acpi_rsdp
Vivek:
  suggest to export a value in bzImage probe for efi support
  so it can be used to check if we should pass acpi_rsdp.

V3 changelog:
01/04: new patch of a building fix
try sysfs firstly for boot params
add checking of efi memory range description version, bail out if it's not 1
error handling improvement and some cleanups

--
Thanks
Dave

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

end of thread, other threads:[~2013-11-28  2:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21  6:40 [patch 0/4 v3] kexec-tools: efi runtime support dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21  6:40 ` [patch 1/4 v3] build fix: include x86-linux.h in x86-linux-setup.h dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21  6:40 ` [patch 2/4 v3] Add function get_bootparam dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21  6:40 ` [patch 3/4 v3] Add efi_info in x86 setup header dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21  6:40 ` [patch 4/4 v3] Passing efi related data via setup_data dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found] ` <20131121064043.969000753-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-11-21  6:47   ` [patch 0/4 v3] kexec-tools: efi runtime support Dave Young
2013-11-22 22:30   ` Toshi Kani
     [not found]     ` <1385159448.1791.161.camel-RbGIw1UOYPVo/CpIj0byZw@public.gmane.org>
2013-11-24  3:12       ` Dave Young
     [not found]         ` <20131124031228.GA1754-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-11-25 15:30           ` Toshi Kani
     [not found]             ` <1385393451.1791.168.camel-RbGIw1UOYPVo/CpIj0byZw@public.gmane.org>
2013-11-26  6:11               ` Dave Young
     [not found]                 ` <20131126061124.GB9727-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-11-26 15:59                   ` Toshi Kani
     [not found]                     ` <1385481553.1791.179.camel-RbGIw1UOYPVo/CpIj0byZw@public.gmane.org>
2013-11-27  9:29                       ` Dave Young
     [not found]                         ` <20131127092946.GB19809-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2013-11-27 11:56                           ` Borislav Petkov
     [not found]                             ` <20131127115609.GC32267-fF5Pk5pvG8Y@public.gmane.org>
2013-11-28  2:13                               ` Dave Young

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