]> xenbits.xensource.com Git - xen.git/commitdiff
passthrough: prevent non-HVM access to HVM-only data
authorJan Beulich <jbeulich@novell.com>
Tue, 12 Apr 2011 12:27:27 +0000 (13:27 +0100)
committerJan Beulich <jbeulich@novell.com>
Tue, 12 Apr 2011 12:27:27 +0000 (13:27 +0100)
Spotted this oversight in c/s 23144:37c4f7d492a4.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/passthrough/pci.c

index 36cf91cf3b468ed9358c6ac821fde93b719707c4..e30cd950a399749febd91d56c025338859ae6aa2 100644 (file)
@@ -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);