From 8d247c677a90d44ee43cb9cc9f2987654ff00a28 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 12 Apr 2011 13:27:27 +0100 Subject: [PATCH] passthrough: prevent non-HVM access to HVM-only data Spotted this oversight in c/s 23144:37c4f7d492a4. Signed-off-by: Jan Beulich --- xen/drivers/passthrough/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5