mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-16 00:16:12 +00:00
hv: fix an issue in vlapic_trigger_lvt
In commit e24899d9c9
("fix "Recursion in procedure calls found""), it
added a check if vector < 16U in vlapic_trigger_lvt() by a mistake, since
the vector variable in vlapic_trigger_lvt() is not the interrupt vector.
This patch fixed the issue mentioned above.
Tracked-On:#2598
Signed-off-by: Min He <min.he@intel.com>
This commit is contained in:
parent
46c72d963d
commit
d9d6ab05f0
@ -982,11 +982,7 @@ vlapic_trigger_lvt(struct acrn_vlapic *vlapic, uint32_t vector)
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
if (vector < 16U) {
|
||||
vlapic_set_error(vlapic, APIC_ESR_RECEIVE_ILLEGAL_VECTOR);
|
||||
} else {
|
||||
vlapic_fire_lvt(vlapic, lvt);
|
||||
}
|
||||
vlapic_fire_lvt(vlapic, lvt);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user