From: Chris Wright Date: Sat, 11 Jul 2009 00:55:26 +0000 (-0700) Subject: lspci: Show SR-IOV VF BARs X-Git-Tag: v3.1.4~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=67e78b32e2c4ba3343b9e625450914538f040859;p=pciutils.git lspci: Show SR-IOV VF BARs When decoding the PCIe SR-IOV capability, cap_sriov() doesn't show the VF BARs. This patch shows basic information about the VF BARs (doesn't include size, for example). Signed-off-by: Chris Wright --- diff --git a/ls-ecaps.c b/ls-ecaps.c index 38da824..c74c9a2 100644 --- a/ls-ecaps.c +++ b/ls-ecaps.c @@ -145,6 +145,7 @@ cap_sriov(struct device *d, int where) u16 b; u16 w; u32 l; + int i; printf("Single Root I/O Virtualization (SR-IOV)\n"); if (verbose < 2) @@ -181,6 +182,28 @@ cap_sriov(struct device *d, int where) printf("\t\tSupported Page Size: %08x, ", l); l = get_conf_long(d, where + PCI_IOV_SYSPS); printf("System Page Size: %08x\n", l); + for (i=0; i