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

[Xen-devel] [PATCH v2 00/11] vpci: add support for SR-IOV capability



Hello,

The following series enables the usage of the SR-IOV capability by a PVH
Dom0. This allows Dom0 to enable virtual functions and access them as it
would do on bare metal.

No changes are needed in the Dom0 kernel in order to manage the PCIe
SR-IOV capability.

The first 10 patches are preparatory changes in order to support SR-IOV.
Patch 11 actually adds support for the capability.

The series can also be found at:

git://xenbits.xen.org/people/royger/xen.git sriov.v2

The series has been tested with a Linux PVH Dom0 and an Intel I350 nic.

Thanks, Roger.

Roger Pau Monne (11):
  vpci: move lock
  vpci/msix: add lock to protect the list of MSIX regions
  vpci: add tear down functions
  vpci/msix: add teardown cleanup
  vpci/msi: add teardown cleanup
  vpci/header: add teardown cleanup
  rangeset: introduce rangeset_merge
  vpci/header: allow multiple map operations
  pci: add vpci hooks for device addition/removal
  vpci: add a wait operation to the vpci vcpu pending actions
  vpci/sriov: add support for SR-IOV capability

 tools/tests/vpci/emul.h          |   5 +-
 tools/tests/vpci/main.c          |   4 +-
 xen/arch/arm/xen.lds.S           |   9 +-
 xen/arch/x86/hvm/hvm.c           |   1 +
 xen/arch/x86/hvm/vmsi.c          |   8 +-
 xen/arch/x86/xen.lds.S           |   9 +-
 xen/common/rangeset.c            |  12 ++
 xen/drivers/passthrough/pci.c    |   9 +
 xen/drivers/vpci/Makefile        |   2 +-
 xen/drivers/vpci/header.c        | 135 +++++++++++--
 xen/drivers/vpci/msi.c           |  61 ++++--
 xen/drivers/vpci/msix.c          |  78 ++++++--
 xen/drivers/vpci/sriov.c         | 317 +++++++++++++++++++++++++++++++
 xen/drivers/vpci/vpci.c          |  80 +++++---
 xen/include/asm-x86/hvm/domain.h |   1 +
 xen/include/xen/pci.h            |   1 +
 xen/include/xen/rangeset.h       |   3 +
 xen/include/xen/vpci.h           |  54 ++++--
 18 files changed, 676 insertions(+), 113 deletions(-)
 create mode 100644 xen/drivers/vpci/sriov.c

-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.