vmexit: refine vmexit loop

- move vmexit handling into vmexit_handler
- add error handling, failure will inject #GP

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jason Chen CJ
2018-05-22 14:33:13 +08:00
committed by lijinxia
parent 2ff7bf826e
commit 67dfec8799
3 changed files with 34 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ struct vm_exit_dispatch {
uint32_t need_exit_qualification;
};
struct vm_exit_dispatch *vmexit_handler(struct vcpu *vcpu);
int vmexit_handler(struct vcpu *vcpu);
int vmcall_vmexit_handler(struct vcpu *vcpu);
int cpuid_vmexit_handler(struct vcpu *vcpu);
int cr_access_vmexit_handler(struct vcpu *vcpu);