-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
7 changed files
with
217 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Example network vsock job, just defines two clients that send/recv data | ||
[global] | ||
ioengine=net | ||
|
||
port=8888 | ||
protocol=vsock | ||
bs=4k | ||
size=100g | ||
|
||
#set the below option to enable end-to-end data integrity tests | ||
#verify=md5 | ||
|
||
[receiver] | ||
listen | ||
rw=read | ||
|
||
[sender] | ||
# 1 (VMADDR_CID_LOCAL) is the well-known address | ||
# for local communication (loopback) | ||
hostname=1 | ||
startdelay=1 | ||
rw=write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Example network vsock job, just defines a receiver | ||
[global] | ||
ioengine=net | ||
port=8888 | ||
protocol=vsock | ||
bs=4k | ||
size=100g | ||
|
||
#set the below option to enable end-to-end data integrity tests | ||
#verify=md5 | ||
|
||
[receiver] | ||
listen | ||
rw=read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Example network vsock job, just defines a sender | ||
[global] | ||
ioengine=net | ||
port=8888 | ||
protocol=vsock | ||
bs=4k | ||
size=100g | ||
|
||
#set the below option to enable end-to-end data integrity tests | ||
#verify=md5 | ||
|
||
[sender] | ||
# set the 'hostname' option to the CID of the listening domain | ||
hostname=3 | ||
startdelay=1 | ||
rw=write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters