arch/x86/kvm/vmx/sgx.h

Source file repositories/reference/linux-study-clean/arch/x86/kvm/vmx/sgx.h

File Facts

System
Linux kernel
Corpus path
arch/x86/kvm/vmx/sgx.h
Extension
.h
Size
878 bytes
Lines
35
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

static inline void setup_default_sgx_lepubkeyhash(void) { }
static inline void vcpu_setup_sgx_lepubkeyhash(struct kvm_vcpu *vcpu) { }

static inline void vmx_write_encls_bitmap(struct kvm_vcpu *vcpu,
					  struct vmcs12 *vmcs12)
{
	/* Nothing to do if hardware doesn't support SGX */
	if (cpu_has_vmx_encls_vmexit())
		vmcs_write64(ENCLS_EXITING_BITMAP, -1ull);
}
#endif

#endif /* __KVM_X86_SGX_H */

Annotation

Implementation Notes