[patch 00/15] x86/tlb: Unexport per-CPU tlbstate

From: Thomas Gleixner
Date: Sun Apr 19 2020 - 16:36:16 EST


The per-CPU tlbstate contains sensitive information which should be really
only accessible in core code. It is exported to modules because some inline
functions which are required by KVM need access to it.

The following series creates regular exported functions for the few things
which are needed by KVM and hides the struct definition and some low level
helpers from modules.

The series is also available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel x86/tlb

Thanks,

tglx

8<-----------------
arch/x86/events/core.c | 11
arch/x86/include/asm/mmu_context.h | 88 -------
arch/x86/include/asm/paravirt.h | 12
arch/x86/include/asm/pgtable_32.h | 2
arch/x86/include/asm/tlbflush.h | 454 ++++---------------------------------
arch/x86/kernel/alternative.c | 55 ++++
arch/x86/kernel/cpu/common.c | 25 +-
arch/x86/kernel/cpu/mtrr/generic.c | 4
arch/x86/kernel/paravirt.c | 21 -
arch/x86/kernel/process.c | 11
arch/x86/mm/init.c | 14 +
arch/x86/mm/init_64.c | 2
arch/x86/mm/ioremap.c | 2
arch/x86/mm/kmmio.c | 2
arch/x86/mm/mem_encrypt.c | 2
arch/x86/mm/pat/set_memory.c | 2
arch/x86/mm/pgtable.c | 8
arch/x86/mm/pgtable_32.c | 2
arch/x86/mm/tlb.c | 367 +++++++++++++++++++++++++++++
arch/x86/platform/uv/tlb_uv.c | 2
drivers/xen/privcmd.c | 1
21 files changed, 556 insertions(+), 531 deletions(-)