diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 36cf91cf3b..e30cd950a3 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -246,7 +246,7 @@ static void pci_clean_dpci_irqs(struct domain *d) if ( !iommu_enabled ) return; - if ( !need_iommu(d) ) + if ( !is_hvm_domain(d) || !need_iommu(d) ) return; spin_lock(&d->event_lock);