iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt mode
PATCH 1/1 iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt mode
Hi,
My testing shows, for some smp guests, ent->fields.mask will not be unmasked when hvm_dpci_eoi() is invoked at the first time. In that case, we should rely on timeout call back to do pirq_guest_eoi() and should not stop the per-irq timer too early.
-Wei
Signature · 12 lines
AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
xen/drivers/passthrough/io.c +4 -2
@@ -253,10 +253,12 @@ void hvm_dpci_eoi(struct domain *d, unsi {spin_unlock (&hvm_irq_dpci->dirq_lock); -stop_timer (&hvm_irq_dpci->hvm_timer[ -domain_irq_to_vector (d, machine_gsi)]);if ( (ent ==NULL ) || !ent->fields.mask ) + { +stop_timer (&hvm_irq_dpci->hvm_timer[ +domain_irq_to_vector (d, machine_gsi)]);pirq_guest_eoi (d, machine_gsi); + } } else spin_unlock(&hvm_irq_dpci->dirq_lock);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel