• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.gitignoreD11-Mar-202420 32

MakefileD11-Mar-2024343 108

READMED11-Mar-20241.2 KiB3729

control.cD11-Mar-20244.3 KiB220148

control.hD11-Mar-2024306 1410

timeout.cD11-Mar-20241.4 KiB6526

timeout.hD11-Mar-2024257 1510

vsock_diag_test.cD11-Mar-202412.9 KiB682564

README

1AF_VSOCK test suite
2-------------------
3These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
4Hyper-V.
5
6The following tests are available:
7
8  * vsock_diag_test - vsock_diag.ko module for listing open sockets
9
10The following prerequisite steps are not automated and must be performed prior
11to running tests:
12
131. Build the kernel and these tests.
142. Install the kernel and tests on the host.
153. Install the kernel and tests inside the guest.
164. Boot the guest and ensure that the AF_VSOCK transport is enabled.
17
18Invoke test binaries in both directions as follows:
19
20  # host=server, guest=client
21  (host)# $TEST_BINARY --mode=server \
22                       --control-port=1234 \
23                       --peer-cid=3
24  (guest)# $TEST_BINARY --mode=client \
25                        --control-host=$HOST_IP \
26                        --control-port=1234 \
27                        --peer-cid=2
28
29  # host=client, guest=server
30  (guest)# $TEST_BINARY --mode=server \
31                        --control-port=1234 \
32                        --peer-cid=2
33  (host)# $TEST_BINARY --mode=client \
34                       --control-port=$GUEST_IP \
35                       --control-port=1234 \
36                       --peer-cid=3
37