]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Remove unnecessary TLB flush for SME in-place encryption
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 1 Nov 2017 16:54:26 +0000 (11:54 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 7 Nov 2017 11:16:14 +0000 (12:16 +0100)
commitb42d32d4de47bbadfcec379e29ad58f6cb0758e5
tree7b646613b2ea81397208b14ff7cbba76ae71ae0b
parent92a30a3e2ec89f1dc977b288f00291fde9d68290
x86/mm: Remove unnecessary TLB flush for SME in-place encryption

A TLB flush is not required when doing in-place encryption or decryption
since the area's pagetable attributes are not being altered.  To avoid
confusion between what the routine is doing and what is documented in
the AMD APM, delete the local_flush_tlb() call.

Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20171101165426.1388.24866.stgit@tlendack-t1.amdoffice.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/mem_encrypt.c