kaiser: kaiser_flush_tlb_on_return_to_user() check PCID
commitfe5cb75fd2dd51746fd391c7f6d18485e6a44f76
authorHugh Dickins <hughd@google.com>
Sun, 5 Nov 2017 01:43:06 +0000 (4 18:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2018 14:46:35 +0000 (5 15:46 +0100)
tree3d39e1642a191df61177da5eec32c20f683d2294
parentb72c26e911c566c78743d7973103925007d103c7
kaiser: kaiser_flush_tlb_on_return_to_user() check PCID

Let kaiser_flush_tlb_on_return_to_user() do the X86_FEATURE_PCID
check, instead of each caller doing it inline first: nobody needs
to optimize for the noPCID case, it's clearer this way, and better
suits later changes.  Replace those no-op X86_CR3_PCID_KERN_FLUSH lines
by a BUILD_BUG_ON() in load_new_mm_cr3(), in case something changes.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/tlbflush.h
arch/x86/mm/kaiser.c
arch/x86/mm/tlb.c