mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: vioapic: fix interrupt lost and redundant interrupt
1. reset polarity of ptirq_remapping_info to zero. this help to set correct initial pin state, and fix the interrupt lost issue when assign a ptirq to uos. 2. since vioapic_generate_intr relys on rte, we should build rte before generating an interrput, this fix the redundant interrupt. Tracked-On: #3362 Signed-off-by: Cai Yulong <yulongc@hwtc.com.cn>
This commit is contained in:
committed by
ACRN System Integration
parent
e720dda5b0
commit
127c98f5db
@@ -391,6 +391,7 @@ static struct ptirq_remapping_info *add_intx_remapping(struct acrn_vm *vm, uint3
|
||||
if (is_sos_vm(entry->vm)) {
|
||||
entry->vm = vm;
|
||||
entry->virt_sid.value = virt_sid.value;
|
||||
entry->polarity = 0U;
|
||||
} else {
|
||||
pr_err("INTX pin%d already in vm%d with vpin%d, not able to add into vm%d with vpin%d",
|
||||
phys_pin, entry->vm->vm_id, entry->virt_sid.intx_id.pin, vm->vm_id, virt_pin);
|
||||
|
Reference in New Issue
Block a user