summaryrefslogtreecommitdiff
path: root/Documentation/x86
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-03-19 10:22:18 +0300
committerBorislav Petkov <bp@suse.de>2021-03-25 19:33:11 +0300
commitb8921dccf3b25798409d35155b5d127085de72c2 (patch)
tree4e617f66ed6f58c18449f07278ee63176f57beae /Documentation/x86
parente9a15a40e857fc6ccfbb05fec7b184e9003057df (diff)
downloadlinux-b8921dccf3b25798409d35155b5d127085de72c2.tar.xz
x86/cpufeatures: Add SGX1 and SGX2 sub-features
Add SGX1 and SGX2 feature flags, via CPUID.0x12.0x0.EAX, as scattered features, since adding a new leaf for only two bits would be wasteful. As part of virtualizing SGX, KVM will expose the SGX CPUID leafs to its guest, and to do so correctly needs to query hardware and kernel support for SGX1 and SGX2. Suppress both SGX1 and SGX2 from /proc/cpuinfo. SGX1 basically means SGX, and for SGX2 there is no concrete use case of using it in /proc/cpuinfo. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Dave Hansen <dave.hansen@intel.com> Acked-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lkml.kernel.org/r/d787827dbfca6b3210ac3e432e3ac1202727e786.1616136308.git.kai.huang@intel.com
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions