[libvirt] [PATCHv3 0/2] pci: properly handle out-of-order SRIOV virtual functions

Laine Stump laine at laine.org
Fri Nov 8 11:11:15 UTC 2013


This resolves:

  https://bugzilla.redhat.com/show_bug.cgi?id=1025397

It has turned from a single patch into a 2 part patch because I wanted
to use VIR_APPEND_ELEMENT on the array, and that requires the array
size to be held in a size_t rather than unsigned int.

Thanks to Martin's suggestion (and similar suggestions from both Jan
and "Niilona" (the original reporter of the problem), this version is
greatly simplified from either my previous version or even the
original code (as evidenced by the diffstat).

Laine Stump (2):
  util: use size_t instead of unsigned int for num_virtual_functions
  pci: properly handle out-of-order SRIOV virtual functions

 src/conf/node_device_conf.h |  2 +-
 src/network/bridge_driver.c |  2 +-
 src/util/virnetdev.c        |  4 +--
 src/util/virnetdev.h        |  2 +-
 src/util/virpci.c           | 84 +++++++++++++++------------------------------
 src/util/virpci.h           |  2 +-
 6 files changed, 34 insertions(+), 62 deletions(-)

-- 
1.8.3.1




More information about the libvir-list mailing list