Add support for VSOCK to engine/net.c
authorMarco Pinna <marco.pinn95@gmail.com>
Tue, 6 Feb 2024 09:52:54 +0000 (10:52 +0100)
committerMarco Pinna <marco.pinn95@gmail.com>
Mon, 12 Feb 2024 08:42:51 +0000 (09:42 +0100)
commit80cc242a580de64c8b6c913a50d252fc496234c1
tree8bfba2813f61f17a8f61a8608b1d99cffc3288ab
parent625b155dcd3d56595ced60806e091126446c1e08
Add support for VSOCK to engine/net.c

* configure: add option to enable/disable vsock support

* engines/net.c: add vsock support

The  VSOCK  address family facilitates communication between virtual
machines and the host they are running on.

The addressing is formed by 2 integers: <CID, port>
- CID: Context ID, it is the ID assigned to the VM
  0, 1, 2 CIDs are reserved:
  0 - hypervisor CID (rarely used)
  1 - local communication (loopback)
  2 - host CID (the guest can always reach the host using CID=2)

- port: port number on 32bit to reach a specific process

* examples: add 3 simple job files for vsock (one sender, one receiver
  and one that uses vsock loopback interface similar to
  examples/netio.fio)

* fio.1: add vsock to supported protocols together with the required
  parameters

* HOWTO.rst: add vsock to supported protocols together with the required
  parameters

Signed-off-by: Marco Pinna <marco.pinn95@gmail.com>
HOWTO.rst
configure
engines/net.c
examples/netio_vsock.fio [new file with mode: 0644]
examples/netio_vsock_receiver.fio [new file with mode: 0644]
examples/netio_vsock_sender.fio [new file with mode: 0644]
fio.1