Skip to content

vfio-user client

John Johnson qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest23 patches 14 repliesIn review
  2. v124 patches 57 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23vfio-user: introduce vfio-user protocol specificationMAINTAINERS docs/devel/index-internals.rst docs/devel/vfio-user.rst+1529 -00 replies
2/23vfio-user: add VFIO base abstract classhw/vfio/pci.c hw/vfio/pci.h+78 -440 replies
3/23vfio-user: add container IO ops vectorhw/vfio/common.c include/hw/vfio/vfio-common.h+110 -422 replies
4/23vfio-user: add region cachehw/vfio/ccw.c hw/vfio/common.c hw/vfio/igd.c +4 more+51 -490 replies
5/23vfio-user: add device IO ops vectorhw/vfio/ap.c hw/vfio/ccw.c hw/vfio/common.c +3 more+178 -640 replies
6/23vfio-user: Define type vfio_user_pci_dev_infoMAINTAINERS hw/vfio/Kconfig hw/vfio/meson.build +3 more+148 -60 replies
7/23vfio-user: connect vfio proxy to remote serverhw/vfio/meson.build hw/vfio/user-pci.c hw/vfio/user.c +2 more+270 -00 replies
8/23vfio-user: define socket receive functionshw/vfio/trace-events hw/vfio/user-pci.c hw/vfio/user-protocol.h +2 more+486 -00 replies
9/23vfio-user: define socket send functionshw/vfio/trace-events hw/vfio/user-pci.c hw/vfio/user-protocol.h +2 more+601 -00 replies
10/23vfio-user: get device infohw/vfio/common.c hw/vfio/trace-events hw/vfio/user-pci.c +4 more+93 -80 replies
11/23vfio-user: get region infohw/vfio/ap.c hw/vfio/ccw.c hw/vfio/common.c +8 more+123 -41 reply
12/23vfio-user: region read/writehw/vfio/common.c hw/vfio/pci.c hw/vfio/trace-events +5 more+154 -84 replies
13/23vfio-user: pci_user_realize PCI setuphw/vfio/pci.c hw/vfio/pci.h hw/vfio/user-pci.c+203 -1100 replies
14/23vfio-user: get and set IRQshw/vfio/pci.c hw/vfio/trace-events hw/vfio/user-protocol.h +1 more+169 -10 replies
15/23vfio-user: forward msix BAR accesses to serverhw/vfio/ccw.c hw/vfio/common.c hw/vfio/pci.c +4 more+118 -14 replies
16/23vfio-user: proxy container connect/disconnecthw/vfio/common.c hw/vfio/user-pci.c hw/vfio/user.c +2 more+237 -430 replies
17/23vfio-user: dma map/unmap operationshw/vfio/common.c hw/vfio/trace-events hw/vfio/user-protocol.h +2 more+311 -152 replies
18/23vfio-user: add dma_unmap_allhw/vfio/common.c hw/vfio/user.c include/hw/vfio/vfio-common.h+61 -91 reply
19/23vfio-user: no-mmap DMA supporthw/vfio/user-pci.c hw/vfio/user.c hw/vfio/user.h+7 -10 replies
20/23vfio-user: dma read/write operationshw/vfio/user-pci.c hw/vfio/user-protocol.h hw/vfio/user.c +1 more+181 -00 replies
21/23vfio-user: pci resethw/vfio/pci.c hw/vfio/pci.h hw/vfio/user-pci.c +2 more+32 -20 replies
22/23vfio-user: add 'x-msg-timeout' option that specifies msg wait timeshw/vfio/user-pci.c hw/vfio/user.c hw/vfio/user.h+9 -30 replies
23/23vfio-user: add coalesced posted writeshw/vfio/trace-events hw/vfio/user-protocol.h hw/vfio/user.c +1 more+157 -20 replies

Reviews trailers per patch

1 of 23 patches has a Reviewed-by or Acked-by.

PatchAlex WilliamsonMichael S. Tsirkin
1/23
2/23
3/23
4/23
5/23
6/23
7/23
8/23
9/23
10/23
11/23
12/23
13/23
14/23
15/23
16/23
17/23A-b R-b
18/23
19/23
20/23
21/23
22/23
23/23

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

Read the v2 thread

Cover letter [PATCH v2 00/23] vfio-user client

Hello,

This is the 2nd patch revision of the vfio-user client implementation.

First of all, thank you for your time reviewing the previous versions.

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.

The libvfio-user project (https://github.com/nutanix/libvfio-user)
can be used by a remote process to handle the protocol to implement the third part. We also have upstreamed a patch series that implement a server using QEMU.

Contributors:

John G Johnson <[email protected]>
John Levon <[email protected]>
Thanos Makatos <[email protected]>
Elena Ufimtseva <[email protected]>
Jagannathan Raman <[email protected]>

Changes fron v1:

John Johnson (22):
vfio-user: add VFIO base abstract class

rename VFIOKernPCIDevice to VFIOKernelPCIDevice

vfio-user: add container IO ops vector

make vfio_cont_io_ioctl static
remove VFIOContIO CONT_* macros
rename VFIOContIO to VFIOContainerIO
rename VFIOContainer io_ops field to io

vfio-user: add region cache

none

vfio-user: add device IO ops vector

remove VFIODevIO VDEV_* macros
rename VFIODevIO to VFIODeviceIO
remove get_info operation from VFIODeviceIO
move short read/write check to patch 12

vfio-user: Define type vfio_user_pci_dev_info

removed reset tests
add user-pci.c file for PCI specific vfio-user code move pci.[ch] changes to user-pci.c

vfio-user: connect vfio proxy to remote server

rename VFIOProxy to VFIOUserProxy
propoagate error return from vfio_user_connect_dev() move pci.c changes to user-pci.c

vfio-user: define socket receive functions

vfio_user_process: fix function name in error case move pci.c changes to user-pci.c

vfio-user: define socket send functions

set message error in vfio_user_send_wait() on invalid flags use warn_report in caps_parse()
move pci.[ch] changes to user-pci.c

vfio-user: get device info

remove caps_offset from VFIOUserDeviceInfo add vfio_get_device() to user.c
change get_info operation to a vfio_get_device() call
typo: struct_device_info -> struct vfio_device_info move pci.c changes to user-pci.c

vfio-user: get region info

add use_regfds boolean to VFIODevice instead of testing proxy make vfio_user_get_region_info() return E2BIG on invalid argsz
typo: struct_vfio -> struct vfio

vfio-user: region read/write

add short read/write check from patch 05
move pci.c changes to user-pci.c

vfio-user: pci_user_realize PCI setup

add pci notifier calls from patch 14
add user_instance finalize code from patch 16
move pci.c changes to user-pci.c

vfio-user: get and set IRQs

move pci notifier calls to patch 13

vfio-user: forward msix BAR accesses to server

rename irq_mask_works to can_mask_irq
move pci.c changes to user-pci.c

vfio-user: proxy container connect/disconnect

refactor common IOMMU group code to be shared move user_instance finalize code to patch 13 add user.h prototypes for vfio_user_{get,put}_group() move common.c changes to user.c
move pci.c changes to user-pci.c

vfio-user: dma map/unmap operations
vfio-user: add dma_unmap_all

none

vfio-user: no-mmap DMA support

rename secure-dma to no-mmap
move pci.[ch] changes to user-pci.c

vfio-user: dma read/write operations

vfio_user_procss_req: fix function name in error case move pci.c changes to user-pci.c

vfio-user: pci reset

move pci.c changes to user-pci.c

vfio-user: add 'x-msg-timeout' option that specifies msg wait times

initialize wait_time directly from command line property list move pci.[ch] changes to user-pci.c

vfio-user: add coalesced posted writes

elaborated coalesced write usage in commit msg

Removed from v1:

vfio-user: add trace points

trace points distributed to other patches

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

 docs/devel/index-internals.rst |    1 +
 docs/devel/vfio-user.rst       | 1522 +++++++++++++++++++++++++++++
 hw/vfio/pci.h                  |   35 +-
 hw/vfio/user-protocol.h        |  243 +++++
 hw/vfio/user.h                 |  116 +++
 include/hw/vfio/vfio-common.h  |   65 ++
 hw/vfio/ap.c                   |    2 +
 hw/vfio/ccw.c                  |    8 +-
 hw/vfio/common.c               |  548 ++++++++---
 hw/vfio/igd.c                  |   23 +-
 hw/vfio/migration.c            |    2 -
 hw/vfio/pci-quirks.c           |   19 +-
 hw/vfio/pci.c                  |  557 ++++++-----
 hw/vfio/platform.c             |    3 +
 hw/vfio/user-pci.c             |  435 +++++++++
 hw/vfio/user.c                 | 2057 ++++++++++++++++++++++++++++++++++++++++
 MAINTAINERS                    |    9 +
 hw/vfio/Kconfig                |   10 +
 hw/vfio/meson.build            |    2 +
 hw/vfio/trace-events           |   15 +
 20 files changed, 5283 insertions(+), 389 deletions(-)
 create mode 100644 docs/devel/vfio-user.rst
 create mode 100644 hw/vfio/user-protocol.h
 create mode 100644 hw/vfio/user.h
 create mode 100644 hw/vfio/user-pci.c
 create mode 100644 hw/vfio/user.c
Signature · 1 line
1.9.4