mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-27 23:15:00 +00:00
hv: vcpu: Move kick_vcpu and vcpu_make_request to common scope
Adjust kick_vcpu logic and move to common scope. Moves also vcpu_make_request to common scope and adds vcpu_has_pending_request and vcpu_take_request helpers. Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Reviewed-by: Li Fei <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -547,15 +547,6 @@ void load_iwkey(struct acrn_vcpu *vcpu);
|
||||
*/
|
||||
int32_t run_vcpu(struct acrn_vcpu *vcpu);
|
||||
|
||||
/**
|
||||
* @brief kick the vcpu and let it handle pending events
|
||||
*
|
||||
* Kick a vCPU to handle the pending events.
|
||||
*
|
||||
* @param[in] vcpu pointer to vcpu data structure
|
||||
*/
|
||||
void kick_vcpu(struct acrn_vcpu *vcpu);
|
||||
|
||||
/**
|
||||
* @brief create a vcpu for the vm and mapped to the pcpu.
|
||||
*
|
||||
|
||||
@@ -101,7 +101,6 @@ void vcpu_inject_ss(struct acrn_vcpu *vcpu);
|
||||
* @pre vcpu != NULL
|
||||
*/
|
||||
void vcpu_inject_thermal_interrupt(struct acrn_vcpu *vcpu);
|
||||
void vcpu_make_request(struct acrn_vcpu *vcpu, uint16_t eventid);
|
||||
|
||||
/*
|
||||
* @pre vcpu != NULL
|
||||
|
||||
Reference in New Issue
Block a user