mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: fixes after emuirq changes
Signed-off-by: Wei Wang <wei.wang2@amd.com>
This commit is contained in:
1 parent
3604b2eafb
commit
9e1a3415b7
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -1860,7 +1860,8 @@ int unmap_domain_pirq_emuirq(struct domain *d, int pirq)
|
||||
}
|
||||
|
||||
d->arch.pirq_emuirq[pirq] = IRQ_UNBOUND;
|
||||
d->arch.emuirq_pirq[emuirq] = IRQ_UNBOUND;
|
||||
if ( emuirq != IRQ_PT )
|
||||
d->arch.emuirq_pirq[emuirq] = IRQ_UNBOUND;
|
||||
|
||||
done:
|
||||
return ret;
|
||||
|
||||
@@ -236,7 +236,8 @@ static int physdev_unmap_pirq(struct physdev_unmap_pirq *unmap)
|
||||
spin_lock(&d->event_lock);
|
||||
ret = unmap_domain_pirq_emuirq(d, unmap->pirq);
|
||||
spin_unlock(&d->event_lock);
|
||||
goto free_domain;
|
||||
if ( unmap->domid == DOMID_SELF || ret )
|
||||
goto free_domain;
|
||||
}
|
||||
|
||||
ret = -EPERM;
|
||||
|
||||