Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1462758

Re: [PATCH] Map in physical addresses in efi_map_region_fixed

From Matt Fleming <matt@codeblueprint.co.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] Map in physical addresses in efi_map_region_fixed
Date 2016-08-15 14:50 +0200
Message-ID <s6pv3-5Eh-11@gated-at.bofh.it> (permalink)
References <s3gRp-2h2-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


(Cc'ing Boris and Dave)

On Fri, 05 Aug, at 06:59:35PM, Alex Thorlton wrote:
> This is a simple change to add in the physical mappings as well as the
> virtual mappings in efi_map_region_fixed.  The motivation here is to
> get access to EFI runtime code that is only available via the 1:1
> mappings on a kexec'd kernel.
> 
> The added call is essentially the kexec analog of the first __map_region
> that Boris put in efi_map_region in commit d2f7cbe7b26a ("x86/efi:
> Runtime services virtual mapping").
> 
> Signed-off-by: Alex Thorlton <athorlton@sgi.com>
> Cc: Russ Anderson <rja@sgi.com>
> Cc: Dimitri Sivanich <sivanich@sgi.com>
> Cc: Mike Travis <travis@sgi.com>
> Cc: Matt Fleming <matt@codeblueprint.co.uk>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: x86@kernel.org
> Cc: linux-efi@vger.kernel.org
> ---
>  arch/x86/platform/efi/efi_64.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
> index 459bcbb..b206126 100644
> --- a/arch/x86/platform/efi/efi_64.c
> +++ b/arch/x86/platform/efi/efi_64.c
> @@ -363,6 +363,7 @@ void __init efi_map_region(efi_memory_desc_t *md)
>   */
>  void __init efi_map_region_fixed(efi_memory_desc_t *md)
>  {
> +	__map_region(md, md->phys_addr);
>  	__map_region(md, md->virt_addr);
>  }
>  

This looks fine to me. I'm going to run it through my tests and unless
anyone complains, apply it for v4.9.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH] Map in physical addresses in efi_map_region_fixed Matt Fleming <matt@codeblueprint.co.uk> - 2016-08-15 14:50 +0200
  Re: [PATCH] Map in physical addresses in efi_map_region_fixed Borislav Petkov <bp@alien8.de> - 2016-08-15 17:10 +0200
    Re: [PATCH] Map in physical addresses in efi_map_region_fixed Alex Thorlton <athorlton@sgi.com> - 2016-08-15 20:50 +0200
      Re: [PATCH] Map in physical addresses in efi_map_region_fixed "H. Peter Anvin" <hpa@zytor.com> - 2016-08-16 00:00 +0200
        Re: [PATCH] Map in physical addresses in efi_map_region_fixed Borislav Petkov <bp@alien8.de> - 2016-08-16 07:40 +0200
      Re: [PATCH] Map in physical addresses in efi_map_region_fixed Borislav Petkov <bp@alien8.de> - 2016-08-16 08:00 +0200
        Re: [PATCH] Map in physical addresses in efi_map_region_fixed Alex Thorlton <athorlton@sgi.com> - 2016-08-16 17:30 +0200
      Re: [PATCH] Map in physical addresses in efi_map_region_fixed Dave Young <dyoung@redhat.com> - 2016-08-17 09:10 +0200
        Re: [PATCH] Map in physical addresses in efi_map_region_fixed Alex Thorlton <athorlton@sgi.com> - 2016-08-17 18:10 +0200
          Re: [PATCH] Map in physical addresses in efi_map_region_fixed Dave Young <dyoung@redhat.com> - 2016-08-18 08:20 +0200
    Re: [PATCH] Map in physical addresses in efi_map_region_fixed Matt Fleming <matt@codeblueprint.co.uk> - 2016-08-16 14:40 +0200
      Re: [PATCH] Map in physical addresses in efi_map_region_fixed Borislav Petkov <bp@alien8.de> - 2016-08-16 15:40 +0200

csiph-web