Skip to content

VMCI: dma dg: Add support for DMA datagrams

Jorgen Hansen lkml virtualization 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 0 repliesNew
  2. v28 patches 4 repliesSuperseded
  3. v18 patches 1 replySuperseded

Changes in v3 from the cover letter

- removed log messages for page size and BAR resources

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8VMCI: dma dg: whitespace formatting change for vmci register definesinclude/linux/vmw_vmci_defs.h+9 -90 replies
2/8VMCI: dma dg: add MMIO access to registersdrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+60 -190 replies
3/8VMCI: dma dg: detect DMA datagram capabilitydrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+12 -00 replies
4/8VMCI: dma dg: set OS page sizedrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+5 -00 replies
5/8VMCI: dma dg: register dummy IRQ handlers for DMA datagramsdrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+51 -50 replies
6/8VMCI: dma dg: allocate send and receive buffers for DMA datagramsdrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+66 -90 replies
7/8VMCI: dma dg: add support for DMA datagrams sendsdrivers/misc/vmw_vmci/vmci_guest.c include/linux/vmw_vmci_defs.h+77 -20 replies
8/8VMCI: dma dg: add support for DMA datagrams receivedrivers/misc/vmw_vmci/vmci_guest.c+79 -240 replies

Reviews trailers per patch

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

PatchVishnu Dasa
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/8] VMCI: dma dg: Add support for DMA datagrams

A new version of the VMCI device will introduce two new major changes:
- support MMIO access to device registers
- support send/receive of datagrams using DMA transfers instead of ioread8_rep/iowrite8_rep operations
This patch series updates the VMCI driver to support these new features while maintaining backwards compatibility.

The DMA based datagram operations use a send and a receive buffer allocated at module load time. The buffer contains a header describing the layout of the buffer followed by either an SG list or inline data. The header also contains a flag indicating whether the buffer is currently owned by the driver or the device. Both for send and receive, the driver will initialize the buffer, transfer ownership to the device by writing the buffer address to a register, and then wait for the ownership to be transferred back. The device will generate an interrupt when this happens.

v2 (fixes issues flagged by kernel test robot <[email protected]>):
- changed type of mmio_base to void __iomem *
- made vmci_read_reg, vmci_write_reg and vmci_write_data static functions

v3:
- removed log messages for page size and BAR resources

Jorgen Hansen (8):
VMCI: dma dg: whitespace formatting change for vmci register defines
VMCI: dma dg: add MMIO access to registers
VMCI: dma dg: detect DMA datagram capability
VMCI: dma dg: set OS page size
VMCI: dma dg: register dummy IRQ handlers for DMA datagrams
VMCI: dma dg: allocate send and receive buffers for DMA datagrams
VMCI: dma dg: add support for DMA datagrams sends
VMCI: dma dg: add support for DMA datagrams receive

 drivers/misc/vmw_vmci/vmci_guest.c | 335 ++++++++++++++++++++++++-----
 include/linux/vmw_vmci_defs.h      |  84 +++++++-
 2 files changed, 355 insertions(+), 64 deletions(-)
Signature · 6 lines
2.25.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization