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] VT-d: only scan secondary functions on mu

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] VT-d: only scan secondary functions on multi-function devices
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 02 Nov 2010 04:50:42 -0700
Delivery-date: Tue, 02 Nov 2010 04:53:49 -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 Keir Fraser <keir@xxxxxxx>
# Date 1288371977 -3600
# Node ID 7afd8dd1d6cb97484d263311f3f0e6ab74d27ed3
# Parent  49803ac994f4094719ec2c3b67d82561a24ba293
VT-d: only scan secondary functions on multi-function devices

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/drivers/passthrough/pci.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 49803ac994f4 -r 7afd8dd1d6cb xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c     Fri Oct 29 18:05:50 2010 +0100
+++ b/xen/drivers/passthrough/pci.c     Fri Oct 29 18:06:17 2010 +0100
@@ -445,6 +445,10 @@ int __init scan_pci_devices(void)
                         spin_unlock(&pcidevs_lock);
                         return -EINVAL;
                 }
+
+                if ( !func && !(pci_conf_read8(bus, dev, func,
+                                               PCI_HEADER_TYPE) & 0x80) )
+                    break;
             }
         }
     }

_______________________________________________
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] VT-d: only scan secondary functions on multi-function devices, Xen patchbot-unstable <=