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

[Xen-changelog] [xen-unstable] xend: remove PCI device listing from NetBSD, since it's Linux



# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
# Date 1311407917 -3600
# Node ID 88847c424eec8c5d5df79fc5e961660fe31d83ec
# Parent  3d18ff6589e33646a43d059106bb53264ce251ca
xend: remove PCI device listing from NetBSD, since it's Linux
specific code.

Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
---


diff -r 3d18ff6589e3 -r 88847c424eec tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py      Sat Jul 23 08:56:58 2011 +0100
+++ b/tools/python/xen/util/pci.py      Sat Jul 23 08:58:37 2011 +0100
@@ -462,6 +462,7 @@
     return None
 
 def get_all_pci_names():
+    if not sys.platform.startswith('linux'): return []
     sysfs_mnt = find_sysfs_mnt()
     if sysfs_mnt is None:
         return None

_______________________________________________
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®.