Skip to content

vfio-user client

John Levon qemu-devel 5 versions – Applied

Status from this message: Applied to vfio-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest19 patches 21 repliesApplied
  2. v419 patches 10 repliesSuperseded
  3. v323 patches 45 repliesApplied
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v229 patches20 repliesSuperseded
v127 patches11 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/19vfio-user: add vfio-user class and containerMAINTAINERS hw/Kconfig hw/meson.build +6 more+441 -02 replies
2/19vfio-user: connect vfio proxy to remote serverhw/vfio-user/meson.build hw/vfio-user/pci.c hw/vfio-user/proxy.c +2 more+266 -01 reply
3/19vfio-user: implement message receive infrastructurehw/vfio-user/pci.c hw/vfio-user/protocol.h hw/vfio-user/proxy.c +4 more+499 -01 reply
4/19vfio-user: implement message send infrastructurehw/vfio-user/pci.c hw/vfio-user/protocol.h hw/vfio-user/proxy.c +2 more+606 -21 reply
5/19vfio-user: implement VFIO_USER_DEVICE_GET_INFOhw/vfio-user/container.c hw/vfio-user/device.c hw/vfio-user/device.h +5 more+107 -71 reply
6/19vfio-user: implement VFIO_USER_DEVICE_GET_REGION_INFOhw/vfio-user/device.c hw/vfio-user/device.h hw/vfio-user/pci.c +3 more+103 -01 reply
7/19vfio-user: implement VFIO_USER_REGION_READ/WRITEhw/vfio-user/device.c hw/vfio-user/protocol.h hw/vfio-user/trace-events+92 -01 reply
8/19vfio-user: set up PCI in vfio_user_pci_realize()hw/vfio-user/pci.c+29 -01 reply
9/19vfio-user: implement VFIO_USER_DEVICE_GET/SET_IRQ*hw/vfio-user/device.c hw/vfio-user/protocol.h hw/vfio-user/trace-events+165 -01 reply
10/19vfio-user: forward MSI-X PBA BAR accesses to serverhw/vfio-user/pci.c hw/vfio/pci.h+65 -01 reply
11/19vfio-user: set up container access to the proxyhw/vfio-user/container.c hw/vfio-user/container.h+36 -91 reply
12/19vfio-user: implement VFIO_USER_DEVICE_RESEThw/vfio-user/device.c hw/vfio-user/device.h hw/vfio-user/pci.c+35 -01 reply
13/19vfio-user: implement VFIO_USER_DMA_MAP/UNMAPhw/vfio-user/container.c hw/vfio-user/protocol.h hw/vfio-user/proxy.c +2 more+257 -41 reply
14/19vfio-user: implement VFIO_USER_DMA_READ/WRITEhw/vfio-user/pci.c hw/vfio-user/protocol.h hw/vfio-user/proxy.c +1 more+223 -11 reply
15/19vfio-user: add 'x-msg-timeout' optionhw/vfio-user/pci.c hw/vfio-user/proxy.c hw/vfio-user/proxy.h+10 -31 reply
16/19vfio-user: support posted writeshw/vfio-user/device.c hw/vfio-user/pci.c hw/vfio-user/proxy.c +1 more+63 -61 reply
17/19vfio-user: add coalesced posted writeshw/vfio-user/device.c hw/vfio-user/protocol.h hw/vfio-user/proxy.c +2 more+158 -01 reply
18/19docs: add vfio-user documentationdocs/system/device-emulation.rst docs/system/devices/vfio-user.rst+27 -01 reply
19/19vfio-user: introduce vfio-user protocol specificationMAINTAINERS docs/interop/index.rst docs/interop/vfio-user.rst+1523 -11 reply

Reviews trailers per patch

All 19 patches have a Reviewed-by or Acked-by.

PatchJohn JohnsonCédric Le Goater
1/19Originally-by R-b
2/19Originally-by R-b
3/19Originally-by R-b
4/19Originally-by R-b
5/19Originally-by R-b
6/19Originally-by R-b
7/19Originally-by R-b
8/19Originally-by R-b
9/19Originally-by R-b
10/19Originally-by R-b
11/19Originally-by R-b
12/19Originally-by R-b
13/19Originally-by R-b
14/19Originally-by R-b
15/19Originally-by R-b
16/19R-b
17/19Originally-by R-b
18/19R-b
19/19R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/19] vfio-user client

The series contains an implementation of a vfio-user client in QEMU.

The vfio-user protocol allows for implementing (PCI) devices in another userspace process; SPDK is one example, which includes a virtual NVMe implementation.

The vfio-user framework consists of 3 parts:
1) The VFIO user protocol specification.
2) A client - the VFIO device in QEMU that encapsulates VFIO messages and sends them to the server.
3) A server - a remote process that emulates a device.

This patchset implements parts 1 and 2.

It has been tested against libvfio-user test servers as well as SPDK. A functional test is still being worked on.

A previous version of this series can be found at
https://lore.kernel.org/qemu-devel/[email protected]/

Changes since last series:

- fixed SPDX identifier nits
- code review changes for error handling

thanks
john

John Levon (18):
vfio-user: add vfio-user class and container
vfio-user: connect vfio proxy to remote server
vfio-user: implement message receive infrastructure
vfio-user: implement message send infrastructure
vfio-user: implement VFIO_USER_DEVICE_GET_INFO
vfio-user: implement VFIO_USER_DEVICE_GET_REGION_INFO
vfio-user: implement VFIO_USER_REGION_READ/WRITE
vfio-user: set up PCI in vfio_user_pci_realize()
vfio-user: implement VFIO_USER_DEVICE_GET/SET_IRQ*
vfio-user: forward MSI-X PBA BAR accesses to server
vfio-user: set up container access to the proxy
vfio-user: implement VFIO_USER_DEVICE_RESET
vfio-user: implement VFIO_USER_DMA_MAP/UNMAP
vfio-user: implement VFIO_USER_DMA_READ/WRITE
vfio-user: add 'x-msg-timeout' option
vfio-user: support posted writes
vfio-user: add coalesced posted writes
docs: add vfio-user documentation

Thanos Makatos (1):
vfio-user: introduce vfio-user protocol specification

 MAINTAINERS                           |   11 +-
 docs/interop/index.rst                |    1 +
 docs/interop/vfio-user.rst            | 1520 +++++++++++++++++++++++++
 docs/system/device-emulation.rst      |    1 +
 docs/system/devices/vfio-user.rst     |   26 +
 meson.build                           |    1 +
 hw/vfio-user/container.h              |   23 +
 hw/vfio-user/device.h                 |   24 +
 hw/vfio-user/protocol.h               |  242 ++++
 hw/vfio-user/proxy.h                  |  135 +++
 hw/vfio-user/trace.h                  |    4 +
 hw/vfio/pci.h                         |    1 +
 include/hw/vfio/vfio-container-base.h |    1 +
 include/hw/vfio/vfio-device.h         |    2 +
 hw/vfio-user/container.c              |  370 ++++++
 hw/vfio-user/device.c                 |  441 +++++++
 hw/vfio-user/pci.c                    |  475 ++++++++
 hw/vfio-user/proxy.c                  | 1356 ++++++++++++++++++++++
 hw/Kconfig                            |    1 +
 hw/meson.build                        |    1 +
 hw/vfio-user/Kconfig                  |    7 +
 hw/vfio-user/meson.build              |   11 +
 hw/vfio-user/trace-events             |   20 +
 23 files changed, 4673 insertions(+), 1 deletion(-)
 create mode 100644 docs/interop/vfio-user.rst
 create mode 100644 docs/system/devices/vfio-user.rst
 create mode 100644 hw/vfio-user/container.h
 create mode 100644 hw/vfio-user/device.h
 create mode 100644 hw/vfio-user/protocol.h
 create mode 100644 hw/vfio-user/proxy.h
 create mode 100644 hw/vfio-user/trace.h
 create mode 100644 hw/vfio-user/container.c
 create mode 100644 hw/vfio-user/device.c
 create mode 100644 hw/vfio-user/pci.c
 create mode 100644 hw/vfio-user/proxy.c
 create mode 100644 hw/vfio-user/Kconfig
 create mode 100644 hw/vfio-user/meson.build
 create mode 100644 hw/vfio-user/trace-events
Signature · 1 line
2.43.0