mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv:fix rtvm hang with maxcpus=0/1 in bootargs
RTVM (with lapic PT) boots hang when maxcpus is assigned a value less than the CPU number configured in hypervisor. In this case, vlapic_state(per VM) is left in TRANSITION state after BSP boot, which blocks interupts to be injected to this UOS. Tracked-On: #4803 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Li, Fei <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -715,6 +715,17 @@ bool is_lapic_pt_enabled(struct acrn_vcpu *vcpu);
|
||||
* @return None
|
||||
*/
|
||||
void vcpu_handle_pi_notification(uint32_t vcpu_index);
|
||||
|
||||
/*
|
||||
* @brief Update the state of vCPU and state of vlapic
|
||||
*
|
||||
* The vlapic state of VM shall be updated for some vCPU
|
||||
* state update cases, such as from VCPU_INIT to VCPU_RUNNING.
|
||||
|
||||
* @pre (vcpu != NULL)
|
||||
*/
|
||||
void vcpu_set_state(struct acrn_vcpu *vcpu, enum vcpu_state new_state);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user