mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
exception: use func vcpu_queue_exception to inject exception
use func vcpu_queue_exception for vcpu_inject_gp and exception_vmexit_handler. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com>
This commit is contained in:
@@ -64,10 +64,10 @@ int get_req_info(char *str, int str_max);
|
||||
/*
|
||||
* VCPU related APIs
|
||||
*/
|
||||
#define ACRN_REQUEST_EVENT 0
|
||||
#define ACRN_REQUEST_EXTINT 1
|
||||
#define ACRN_REQUEST_NMI 2
|
||||
#define ACRN_REQUEST_GP 3
|
||||
#define ACRN_REQUEST_EXCP 0
|
||||
#define ACRN_REQUEST_EVENT 1
|
||||
#define ACRN_REQUEST_EXTINT 2
|
||||
#define ACRN_REQUEST_NMI 3
|
||||
#define ACRN_REQUEST_TMR_UPDATE 4
|
||||
#define ACRN_REQUEST_TLB_FLUSH 5
|
||||
#define ACRN_REQUEST_TRP_FAULT 6
|
||||
|
@@ -183,7 +183,7 @@ extern spurious_handler_t spurious_handler;
|
||||
|
||||
int vcpu_inject_extint(struct vcpu *vcpu);
|
||||
int vcpu_inject_nmi(struct vcpu *vcpu);
|
||||
int vcpu_inject_gp(struct vcpu *vcpu);
|
||||
int vcpu_inject_gp(struct vcpu *vcpu, uint32_t err_code);
|
||||
int vcpu_make_request(struct vcpu *vcpu, int eventid);
|
||||
int vcpu_queue_exception(struct vcpu *vcpu, int32_t vector, uint32_t err_code);
|
||||
|
||||
|
Reference in New Issue
Block a user