Merge pull request #147693 from veehaitch/kernel-sgx

linux: enable X86_SGX and X86_SGX_KVM on x86
This commit is contained in:
Jörg Thalheim 2021-11-29 12:23:33 +00:00 committed by GitHub
commit decc5e2262
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -473,6 +473,11 @@ let
# Detect buffer overflows on the stack
CC_STACKPROTECTOR_REGULAR = {optional = true; tristate = whenOlder "4.18" "y";};
} // optionalAttrs stdenv.hostPlatform.isx86 {
# Enable Intel SGX
X86_SGX = whenAtLeast "5.11" yes;
# Allow KVM guests to load SGX enclaves
X86_SGX_KVM = whenAtLeast "5.13" yes;
};
microcode = {