x86/cpufeatures: Add EPT_AD feature bit
authorPeter Feiner <pfeiner@google.com>
Wed, 1 Aug 2018 18:06:57 +0000 (11:06 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 3 Aug 2018 10:36:23 +0000 (12:36 +0200)
commit301d328a6f8b53bb86c5ecf72db7bc178bcf1999
tree4022ecc1e96a6309fb722de89c57a770a260f7de
parentcc9aec03e58fea4dbab04c05d1e15852f801ca53
x86/cpufeatures: Add EPT_AD feature bit

Some Intel processors have an EPT feature whereby the accessed & dirty bits
in EPT entries can be updated by HW. MSR IA32_VMX_EPT_VPID_CAP exposes the
presence of this capability.

There is no point in trying to use that new feature bit in the VMX code as
VMX needs to read the MSR anyway to access other bits, but having the
feature bit for EPT_AD in place helps virtualization management as it
exposes "ept_ad" in /proc/cpuinfo/$proc/flags if the feature is present.

[ tglx: Amended changelog ]

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: Peter Shier <pshier@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jim Mattson <jmattson@google.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Link: https://lkml.kernel.org/r/20180801180657.138051-1-pshier@google.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/intel.c