xref: /linux/arch/x86/kvm/vmx/sgx.h (revision 9798adbc04cf1b14325dc7e2c882639693516a69)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __KVM_X86_SGX_H
3 #define __KVM_X86_SGX_H
4 
5 #include <linux/kvm_host.h>
6 
7 #ifdef CONFIG_X86_SGX_KVM
8 extern bool __read_mostly enable_sgx;
9 
10 int handle_encls(struct kvm_vcpu *vcpu);
11 #else
12 #define enable_sgx 0
13 #endif
14 
15 #endif /* __KVM_X86_SGX_H */
16