On 03/24/17 at 09:08am, Ingo Molnar wrote:
> > Cc: <sta...@vger.kernel.org> #4.8+
> > Signed-off-by: Baoquan He <b...@redhat.com>
> > Acked-by: Dave Young <dyo...@redhat.com>
> > Reviewed-by: Bhupesh Sharma <bhsha...@redhat.com>
> > Acked-by: Thomas Garnier <thgar...@google.com>
> > Cc: Thomas Gleixner <t...@linutronix.de>
> > Cc: Ingo Molnar <mi...@redhat.com>
> > Cc: "H. Peter Anvin" <h...@zytor.com>
> > Cc: x...@kernel.org
> > Cc: linux-...@vger.kernel.org
> > Cc: Thomas Garnier <thgar...@google.com>
> > Cc: Kees Cook <keesc...@chromium.org>
> > Cc: Borislav Petkov <b...@alien8.de>
> > Cc: Andrew Morton <a...@linux-foundation.org>
> > Cc: Masahiro Yamada <yamada.masah...@socionext.com>
> > Cc: Dave Young <dyo...@redhat.com>
> > Cc: Bhupesh Sharma <bhsha...@redhat.com>
> 
> So I applied this kexec fix and extended the changelog to clearly show why 
> this 
> fix matters in practice.

I thought it only impacts kexec, but Dave thought it will impact 1st
kenrel either.
> 
> Also, to make sure I understood it correctly: these addresses are all dynamic 
> on 
> 64-bit kernels, i.e. we are establishing and then tearing down these page 
> tables 
> around EFI calls, and they are 'normally' not present at all, right?

The EFI region is reserved for EFI runtime services virtual mapping, the
original purpose is to preserve this region so that they can be reused
by kexec-ed kernel. This was introduced by Boris in commit d2f7cbe7b26a7
("x86/efi: Runtime services virtual mapping").

So it will be establishing and stay there. According to Dave's telling,
efi will still fetch efi variables or time/date by runtime service by
switching the efi pgd and entering into efi mode. And then switch back
to normal OS. Not sure if I am right for efi part in 1st kernel. For 2nd
kernel, if want to reuse the them, the efi region has to be kept.

Thanks
Baoquan

Reply via email to