[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] passthrough: prevent non-HVM access to HVM-only data



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxxxx>
# Date 1302611247 -3600
# Node ID e288952081a43991b4b8f4405e033322288d1503
# Parent  995a0c01a076e9c4fb124c090bc146a10d76bc7b
passthrough: prevent non-HVM access to HVM-only data

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

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---


diff -r 995a0c01a076 -r e288952081a4 xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c     Tue Apr 12 13:26:19 2011 +0100
+++ b/xen/drivers/passthrough/pci.c     Tue Apr 12 13:27:27 2011 +0100
@@ -246,7 +246,7 @@
     if ( !iommu_enabled )
         return;
 
-    if ( !need_iommu(d) )
+    if ( !is_hvm_domain(d) || !need_iommu(d) )
         return;
 
     spin_lock(&d->event_lock);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.