Re: [PATCH 05/43] x86/fixmap: Generalize the GDT fixmap mechanism

From: Borislav Petkov
Date: Fri Nov 24 2017 - 06:00:11 EST


On Fri, Nov 24, 2017 at 10:14:10AM +0100, Ingo Molnar wrote:
> From: Andy Lutomirski <luto@xxxxxxxxxx>
>
> Currently, the GDT is an ad-hoc array of pages, one per CPU, in the
> fixmap. Generalize it to be an array of a new struct cpu_entry_area
> so that we can cleanly add new things to it.
>
> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>
> Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: Borislav Petkov <bpetkov@xxxxxxx>
> Cc: Brian Gerst <brgerst@xxxxxxxxx>
> Cc: Dave Hansen <dave.hansen@xxxxxxxxx>
> Cc: Denys Vlasenko <dvlasenk@xxxxxxxxxx>
> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Link: http://lkml.kernel.org/r/22571d77ba1f3c714df9fa37db9a58218bc17597.1511497875.git.luto@xxxxxxxxxx
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
> ---
> arch/x86/include/asm/desc.h | 9 +--------
> arch/x86/include/asm/fixmap.h | 34 ++++++++++++++++++++++++++++++++--
> arch/x86/kernel/cpu/common.c | 14 +++++++-------
> arch/x86/xen/mmu_pv.c | 2 +-
> 4 files changed, 41 insertions(+), 18 deletions(-)

Reviewed-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.