All of lore.kernel.org
 help / color / mirror / Atom feed
* xend: removed PCI device listing from non Linux OS, since it's Linux specific code.
@ 2011-07-22 12:42 Roger Pau Monné
  2011-07-22 12:57 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Roger Pau Monné @ 2011-07-22 12:42 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 50 bytes --]

Removed PCI device listing from non-Linux guests.

[-- Attachment #2: patch-xend-pci --]
[-- Type: application/octet-stream, Size: 699 bytes --]

# HG changeset patch
# User royger
# Date 1311345851 -7200
# Node ID efbfe76448168516daeb4e60b8d69eeba23ca2d7
# Parent  cc91b131c788992d6ab9aa3803d60ccb4d46ca74
xend: removed PCI device listing from NetBSD, since it's Linux specific code.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>

diff -r cc91b131c788 -r efbfe7644816 tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py	Fri Jul 22 16:38:05 2011 +0200
+++ b/tools/python/xen/util/pci.py	Fri Jul 22 16:44:11 2011 +0200
@@ -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

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-22 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22 12:42 xend: removed PCI device listing from non Linux OS, since it's Linux specific code Roger Pau Monné
2011-07-22 12:57 ` Ian Campbell
2011-07-22 13:19   ` Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.