KVM
Functions
hyperv.c File Reference
#include "hyperv.h"
Include dependency graph for hyperv.c:

Go to the source code of this file.

Functions

void svm_hv_inject_synthetic_vmexit_post_tlb_flush (struct kvm_vcpu *vcpu)
 

Function Documentation

◆ svm_hv_inject_synthetic_vmexit_post_tlb_flush()

void svm_hv_inject_synthetic_vmexit_post_tlb_flush ( struct kvm_vcpu *  vcpu)

Definition at line 9 of file hyperv.c.

10 {
11  struct vcpu_svm *svm = to_svm(vcpu);
12 
13  svm->vmcb->control.exit_code = HV_SVM_EXITCODE_ENL;
14  svm->vmcb->control.exit_code_hi = 0;
15  svm->vmcb->control.exit_info_1 = HV_SVM_ENL_EXITCODE_TRAP_AFTER_FLUSH;
16  svm->vmcb->control.exit_info_2 = 0;
17  nested_svm_vmexit(svm);
18 }
Definition: svm.h:209
struct vmcb * vmcb
Definition: svm.h:212
struct kvm_vcpu vcpu
Definition: svm.h:210
int nested_svm_vmexit(struct vcpu_svm *svm)
Definition: nested.c:967
static __always_inline struct vcpu_svm * to_svm(struct kvm_vcpu *vcpu)
Definition: svm.h:364
Here is the call graph for this function: