Mailing List Archive

[xen-unstable] passthrough: prevent non-HVM access to HVM-only data
# HG changeset patch
# User Jan Beulich <jbeulich@novell.com>
# 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@novell.com>
---


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@lists.xensource.com
http://lists.xensource.com/xen-changelog