KVM
Macros | Functions
sgx.h File Reference
#include <linux/kvm_host.h>
#include "capabilities.h"
#include "vmx_ops.h"
Include dependency graph for sgx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define enable_sgx   0
 

Functions

static void setup_default_sgx_lepubkeyhash (void)
 
static void vcpu_setup_sgx_lepubkeyhash (struct kvm_vcpu *vcpu)
 
static void vmx_write_encls_bitmap (struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
 

Macro Definition Documentation

◆ enable_sgx

#define enable_sgx   0

Definition at line 20 of file sgx.h.

Function Documentation

◆ setup_default_sgx_lepubkeyhash()

static void setup_default_sgx_lepubkeyhash ( void  )
inlinestatic

Definition at line 22 of file sgx.h.

22 { }

◆ vcpu_setup_sgx_lepubkeyhash()

static void vcpu_setup_sgx_lepubkeyhash ( struct kvm_vcpu *  vcpu)
inlinestatic

Definition at line 23 of file sgx.h.

23 { }

◆ vmx_write_encls_bitmap()

static void vmx_write_encls_bitmap ( struct kvm_vcpu *  vcpu,
struct vmcs12 vmcs12 
)
inlinestatic

Definition at line 25 of file sgx.h.

27 {
28  /* Nothing to do if hardware doesn't support SGX */
30  vmcs_write64(ENCLS_EXITING_BITMAP, -1ull);
31 }
static bool cpu_has_vmx_encls_vmexit(void)
Definition: capabilities.h:235
static __always_inline void vmcs_write64(unsigned long field, u64 value)
Definition: vmx_ops.h:246
Here is the call graph for this function: