qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/3] pcie: Add support for Single Root I/O Virtualization
@ 2015-09-12 12:36 Knut Omang
  2015-09-12 12:36 ` [Qemu-devel] [PATCH v4 1/3] pci: Make use of the devfn property when registering new devices Knut Omang
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Knut Omang @ 2015-09-12 12:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Michael S. Tsirkin, Knut Omang,
	Richard W.M. Jones, Alex Williamson, Gonglei (Arei), Jan Kiszka,
	Paolo Bonzini, Dotan Barak, Richard Henderson

This patch set implements generic support for SR/IOV as an extension to the
core PCIe functionality, similar to the way other capabilities such as AER
is implemented.

There is no implementation of any device that provides
SR/IOV support included, but I have implemented a test
example which can be found together with this patch set here:

  git://github.com/knuto/qemu.git sriov_patches_v4

Testing with the example device was documented here:

  http://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg05110.html

Changes since v3:
  - Reworked 'pci: Update pci_regs header' to merge kernel version improvements
    with the current qemu version instead of copying from the kernel version.

Changes since v2:
  - Rebased onto 090d0bfd
  - Un-qdev'ified - avoids issues when resetting NUM_VFS
  - Fixed handling of vf_offset/vf_stride

Changes since v1:
  - Rebased on top of latest master, eliminating prereqs.
  - Implement proper support for VF_STRIDE, VF_OFFSET and SUP_PGSIZE
    Time better spent fixing it than explaining what the previous
    limitations were.
    - Added new first patch to fix pci bug related to this
  - Split out patch to pci_default_config_write to a separate patch 2
    to highlight bug fix.
  - Refactored out logic into new source files
    hw/pci/pcie_sriov.c include/hw/pci/pcie_sriov.h
    similar to pcie_aer.c/h.
  - Rename functions and introduce structs to better separate
    pf and vf functionality.
  - Replaced is_vf member with pci_is_vf() function abstraction
  - Fix numerous syntax, whitespace and comment issues
    according to Michael's review.
  - Fix memory leaks.
  - Removed igb example device - a rebased version available
    on github instead.

Knut Omang (3):
  pci: Make use of the devfn property when registering new devices
  pci: Update pci_regs header
  pcie: Add support for Single Root I/O Virtualization (SR/IOV)

 hw/pci/Makefile.objs                      |   2 +-
 hw/pci/pci.c                              | 101 ++++++++---
 hw/pci/pcie.c                             |   9 +-
 hw/pci/pcie_sriov.c                       | 271 ++++++++++++++++++++++++++++++
 include/hw/pci/pci.h                      |  11 +-
 include/hw/pci/pcie.h                     |   6 +
 include/hw/pci/pcie_sriov.h               |  55 ++++++
 include/qemu/typedefs.h                   |   2 +
 include/standard-headers/linux/pci_regs.h | 142 +++++++++++++---
 9 files changed, 545 insertions(+), 54 deletions(-)
 create mode 100644 hw/pci/pcie_sriov.c
 create mode 100644 include/hw/pci/pcie_sriov.h

--
2.4.3

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-10-14 12:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-12 12:36 [Qemu-devel] [PATCH v4 0/3] pcie: Add support for Single Root I/O Virtualization Knut Omang
2015-09-12 12:36 ` [Qemu-devel] [PATCH v4 1/3] pci: Make use of the devfn property when registering new devices Knut Omang
2015-09-17 11:11   ` Marcel Apfelbaum
2015-09-17 12:12     ` Knut Omang
2015-09-17 12:41       ` Marcel Apfelbaum
2015-10-14 10:27         ` Knut Omang
2015-09-12 12:36 ` [Qemu-devel] [PATCH v4 2/3] pci: Update pci_regs header Knut Omang
2015-10-07 13:32   ` Marcel Apfelbaum
2015-10-10 10:46     ` Knut Omang
2015-09-12 12:36 ` [Qemu-devel] [PATCH v4 3/3] pcie: Add support for Single Root I/O Virtualization (SR/IOV) Knut Omang
2015-09-17 11:49   ` Marcel Apfelbaum
2015-09-17 14:10     ` Knut Omang
2015-10-07 13:45       ` Marcel Apfelbaum
2015-10-14 12:25       ` Knut Omang
2015-10-07 15:06   ` Marcel Apfelbaum
2015-10-11 13:56     ` Knut Omang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).