Skip to contentSkip to conversation

pt: prevent non-HVM access to HVM-only data

PATCH New Jan Beulich 1 participant 1 message Apr 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pt: prevent non-HVM access to HVM-only data

Spotted this oversight in c/s 23144:37c4f7d492a4.

xen/drivers/passthrough/pci.c +1 -1
@@ -246,7 +246,7 @@ static void pci_clean_dpci_irqs(struct d
     if ( !iommu_enabled )
         return;
 
-    if ( !need_iommu(d) )
+    if ( !is_hvm_domain(d) || !need_iommu(d) )
         return;
 
     spin_lock(&d->event_lock);

Spotted this oversight in c/s 23144:37c4f7d492a4.

xen/drivers/passthrough/pci.c +1 -1
@@ -246,7 +246,7 @@ static void pci_clean_dpci_irqs(struct d
     if ( !iommu_enabled )
         return;
 
-    if ( !need_iommu(d) )
+    if ( !is_hvm_domain(d) || !need_iommu(d) )
         return;
 
     spin_lock(&d->event_lock);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel