Kconfig: Add CONFIG_SGX support
authorYang Zhong <yang.zhong@intel.com>
Mon, 19 Jul 2021 11:21:34 +0000 (19:21 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Sep 2021 12:50:19 +0000 (14:50 +0200)
Add new CONFIG_SGX for sgx support in the Qemu, and the Kconfig
default enable sgx in the i386 platform.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20210719112136.57018-32-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configs/devices/i386-softmmu/default.mak
hw/i386/Kconfig

index 84d1a2487cdd654ac8d9827a7155c1c586dfa34b..598c6646dfc0f941385b4d07939739bf9ae53e5c 100644 (file)
@@ -22,6 +22,7 @@
 #CONFIG_TPM_CRB=n
 #CONFIG_TPM_TIS_ISA=n
 #CONFIG_VTD=n
+#CONFIG_SGX=n
 
 # Boards:
 #
index ddedcef0b27c7a98c76efea983e328a61e512ac9..962d2c981b648485f904256b7a08d41fe9efde45 100644 (file)
@@ -6,6 +6,10 @@ config SEV
     select X86_FW_OVMF
     depends on KVM
 
+config SGX
+    bool
+    depends on KVM
+
 config PC
     bool
     imply APPLESMC
@@ -21,6 +25,7 @@ config PC
     imply PVPANIC_ISA
     imply QXL
     imply SEV
+    imply SGX
     imply SGA
     imply TEST_DEVICES
     imply TPM_CRB