public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* [patch 0/6] kexec kernel efi runtime support
@ 2013-10-27  3:47 dyoung
  2013-10-27  3:47 ` [patch 1/6] Add function efi_remap_region for remapping to saved virt address dyoung
                   ` (5 more replies)
  0 siblings, 6 replies; 37+ messages in thread
From: dyoung @ 2013-10-27  3:47 UTC (permalink / raw)
  To: linux-kernel
  Cc: mjg59, linux-efi, x86, kexec, James.Bottomley, horms, kexec,
	ebiederm, hpa, bp, vgoyal

[-- Attachment #1: Type: text/plain, Size: 2087 bytes --]

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


[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2013-11-01 11:34 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
2013-10-27  3:47 ` [patch 1/6] Add function efi_remap_region for remapping to saved virt address dyoung
2013-10-27 11:50   ` Borislav Petkov
2013-10-28  1:25     ` Dave Young
2013-10-27  3:47 ` [patch 2/6] x86 efi: reserve boot service fix dyoung
2013-10-27 10:50   ` Borislav Petkov
2013-10-27 20:30     ` Matt Fleming
2013-10-28  1:18       ` Dave Young
2013-10-28  8:44         ` Borislav Petkov
2013-10-28 10:27           ` Matt Fleming
2013-10-27  3:47 ` [patch 3/6] Cleanup efi_enter_virtual_mode function dyoung
2013-10-28  9:32   ` Borislav Petkov
2013-10-28  9:40     ` Dave Young
2013-10-28  9:51       ` Dave Young
2013-10-28 10:04         ` Borislav Petkov
2013-10-28 10:10           ` Dave Young
2013-10-28 10:39             ` Dave Young
2013-10-28 11:20             ` Borislav Petkov
2013-10-28 11:24               ` Dave Young
2013-10-28 14:58                 ` Borislav Petkov
2013-10-28 15:10                   ` Dave Young
2013-10-29  2:32                     ` Dave Young
2013-10-29 13:43                       ` Borislav Petkov
2013-10-30  2:03                         ` Dave Young
2013-10-30 10:47                           ` Borislav Petkov
2013-10-31  2:04                             ` Dave Young
2013-10-31  2:07                               ` Dave Young
2013-10-31  3:07                                 ` H. Peter Anvin
2013-10-31 10:45                                   ` Borislav Petkov
2013-11-01  1:15                                     ` Dave Young
2013-10-31 10:44                                 ` Borislav Petkov
2013-11-01  1:18                                   ` Dave Young
2013-11-01 11:32                                     ` Borislav Petkov
2013-10-27  3:47 ` [patch 4/6] export more efi table variable to sysfs dyoung
2013-10-27  3:47 ` [patch 5/6] export efi runtime memory mapping " dyoung
2013-10-29  5:34   ` Dave Young
2013-10-27  3:47 ` [patch 6/6] passing kexec necessary efi data via setup_data dyoung

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