0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
0004
0005 # Amazon Nitro Enclaves (NE) support.
0006 # Nitro is a hypervisor that has been developed by Amazon.
0007
0008 config NITRO_ENCLAVES
0009 tristate "Nitro Enclaves Support"
0010 depends on (ARM64 || X86) && HOTPLUG_CPU && PCI && SMP
0011 help
0012 This driver consists of support for enclave lifetime management
0013 for Nitro Enclaves (NE).
0014
0015 To compile this driver as a module, choose M here.
0016 The module will be called nitro_enclaves.
0017
0018 config NITRO_ENCLAVES_MISC_DEV_TEST
0019 bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS
0020 depends on NITRO_ENCLAVES && KUNIT=y
0021 default KUNIT_ALL_TESTS
0022 help
0023 Enable KUnit tests for the misc device functionality of the Nitro
0024 Enclaves. Select this option only if you will boot the kernel for
0025 the purpose of running unit tests (e.g. under UML or qemu). If
0026 unsure, say N.