[PATCH 0/2] nodedev: fix virtual_functions element

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

 



Moshe Levi pointed out yesterday in an email to libvir-list that there
was no way to tell from the node device API that a PCI was capable of
having SRIOV virtual functions (VFs) if it was currently setup to not
have any:

 https://www.redhat.com/archives/libvir-list/2015-November/msg00894.html

These two patches modify the node device XML in two ways:

1) if the device has a file called sriov_totalvfs, the value contained
in that file will be included in the capabilities element as the
attribute "maxCount".

2) in this case, even if there are currently no VFs active/visible for
the device, the virtual_functions capability will still be reported.

Laine Stump (2):
  conf: support reporting maxCount attribute for virtual_functions cap
  nodedev: report maxCount for virtual_functions capability

 docs/formatnode.html.in                   | 11 ++++++++++-
 src/conf/node_device_conf.c               | 32 +++++++++++++++++++------------
 src/conf/node_device_conf.h               |  1 +
 src/network/bridge_driver.c               |  5 +++--
 src/node_device/node_device_linux_sysfs.c |  7 +++++--
 src/util/virnetdev.c                      |  9 ++++++---
 src/util/virnetdev.h                      |  5 +++--
 src/util/virpci.c                         | 30 +++++++++++++++++++++++++----
 src/util/virpci.h                         |  5 +++--
 9 files changed, 77 insertions(+), 28 deletions(-)

-- 
2.4.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]