WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] passthrough: prevent non-HVM access to HVM-only data
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 13 Apr 2011 01:05:10 +0100
Delivery-date: Tue, 12 Apr 2011 17:05:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] passthrough: prevent non-HVM access to HVM-only data, Xen patchbot-unstable <=