1
Author: John Ferlito <johnf@inodes.org>
2
Description: add vendor and device to pciDeviceFileIterate(). Patch submitted
3
upstream and they feel it is reasonable, but not committed yet.
4
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=624151
5
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/maverick/+source/libvirt/+bug/545795
7
Index: libvirt-0.9.7/src/util/pci.c
8
===================================================================
9
--- libvirt-0.9.7.orig/src/util/pci.c 2011-10-30 22:46:04.000000000 -0500
10
+++ libvirt-0.9.7/src/util/pci.c 2011-11-16 07:38:39.040557653 -0600
13
if (STREQ(ent->d_name, "config") ||
14
STRPREFIX(ent->d_name, "resource") ||
15
+ STREQ(ent->d_name, "vendor") ||
16
+ STREQ(ent->d_name, "device") ||
17
STREQ(ent->d_name, "rom") ||
18
STREQ(ent->d_name, "reset")) {
19
if (virAsprintf(&file, "%s/%s", pcidir, ent->d_name) < 0) {