]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu: Add hardware-enforced cache coherency as a CPUID feature
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Thu, 17 Sep 2020 21:20:36 +0000 (21:20 +0000)
committerBorislav Petkov <bp@suse.de>
Fri, 18 Sep 2020 08:46:41 +0000 (10:46 +0200)
commitafcbd44305acb30d2c17091599af5a68ce3ac228
treeabdb11c74714c51902b260990139d5536cf0df02
parent6fe8df1f6f7b647b832fc06c7ede0f5b0e18064a
x86/cpu: Add hardware-enforced cache coherency as a CPUID feature

In some hardware implementations, coherency between the encrypted and
unencrypted mappings of the same physical page is enforced. In such a system,
it is not required for software to flush the page from all CPU caches in the
system prior to changing the value of the C-bit for a page. This hardware-
enforced cache coherency is indicated by EAX[10] in CPUID leaf 0x8000001f.

 [ bp: Use one of the free slots in word 3. ]

Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200917212038.5090-2-krish.sadhukhan@oracle.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/scattered.c