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

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

Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
Jan Beulich committed 2011-04-12 13:27:27 +01:00
1 parent 9b130249ea
commit 8d247c677a
1 file changed
+1 -1
+1 -1
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.