From: Jan Beulich Date: Tue, 12 Apr 2011 12:27:27 +0000 (+0100) Subject: passthrough: prevent non-HVM access to HVM-only data X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d247c677a90d44ee43cb9cc9f2987654ff00a28;p=xen.git passthrough: prevent non-HVM access to HVM-only data Spotted this oversight in c/s 23144:37c4f7d492a4. Signed-off-by: Jan Beulich --- 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);