x86/tlb: do flush_tlb_kernel_range by 'invlpg'
authorAlex Shi <alex.shi@intel.com>
Thu, 28 Jun 2012 01:02:24 +0000 (09:02 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 28 Jun 2012 02:29:14 +0000 (19:29 -0700)
commiteffee4b9b3b0aa5770bcd98de5f672b05b27703c
treeb167657ec2ba05797b925a93e7e1b45222ac5ac3
parent52aec3308db85f4e9f5c8b9f5dc4fbd0138c6fa4
x86/tlb: do flush_tlb_kernel_range by 'invlpg'

This patch do flush_tlb_kernel_range by 'invlpg'. The performance pay
and gain was analyzed in previous patch
(x86/flush_tlb: try flush_tlb_single one by one in flush_tlb_range).

In the testing: http://lkml.org/lkml/2012/6/21/10

The pay is mostly covered by long kernel path, but the gain is still
quite clear, memory access in user APP can increase 30+% when kernel
execute this funtion.

Signed-off-by: Alex Shi <alex.shi@intel.com>
Link: http://lkml.kernel.org/r/1340845344-27557-10-git-send-email-alex.shi@intel.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/tlbflush.h
arch/x86/mm/tlb.c