Re: [PATCH v6 08/14] efi: export efi runtime memory mapping to sysfs

2013-12-16 Thread Dave Young
On 12/16/13 at 03:09pm, Matt Fleming wrote: > On Mon, 16 Dec, at 05:30:29PM, Dave Young wrote: > > @@ -899,6 +928,11 @@ void __init efi_enter_virtual_mode(void) > > return; > > } > > > > +#ifdef CONFIG_EFI_RUNTIME_MAP > > + efi_runtime_map_setup(efi_runtime_map, nr_efi_runtime_m

Re: [PATCH v6 08/14] efi: export efi runtime memory mapping to sysfs

2013-12-16 Thread Matt Fleming
On Mon, 16 Dec, at 05:30:29PM, Dave Young wrote: > @@ -899,6 +928,11 @@ void __init efi_enter_virtual_mode(void) > return; > } > > +#ifdef CONFIG_EFI_RUNTIME_MAP > + efi_runtime_map_setup(efi_runtime_map, nr_efi_runtime_map, > + boot_params.efi_in

[PATCH v6 08/14] efi: export efi runtime memory mapping to sysfs

2013-12-16 Thread Dave Young
kexec kernel will need exactly same mapping for efi runtime memory ranges. Thus here export the runtime ranges mapping to sysfs, kexec-tools will assemble them and pass to 2nd kernel via setup_data. Introducing a new directory /sys/firmware/efi/runtime-map Just like /sys/firmware/memmap. Containin