mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
hv: replace vlapic_init by vlapic_reset in vcpu_reset
This change is to fix a guest vm hang issue at vm reset, especially easy to be seen when it's a watchdog timeout reset. vlapic_init create and init vlapic.vlapic_timer without deleting the timer from cpu_times list, which breaks the list, results in a timer remains with callback points to an invalid location. Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
@@ -119,6 +119,7 @@ uint8_t vlapic_get_apicid(struct vlapic *vlapic);
|
||||
int vlapic_create(struct vcpu *vcpu);
|
||||
void vlapic_free(struct vcpu *vcpu);
|
||||
void vlapic_init(struct vlapic *vlapic);
|
||||
void vlapic_reset(struct vlapic *vlapic);
|
||||
void vlapic_restore(struct vlapic *vlapic, struct lapic_regs *regs);
|
||||
bool vlapic_enabled(struct vlapic *vlapic);
|
||||
uint64_t apicv_get_apic_access_addr(struct vm *vm);
|
||||
|
Reference in New Issue
Block a user