qed: Fix static checker warning
[linux/fpc-iii.git] / tools / testing / vsock / README
blob2cc6d7302db64778d5d08d72680f2965c283d8d5
1 AF_VSOCK test suite
2 -------------------
3 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
4 Hyper-V.
6 The following tests are available:
8   * vsock_diag_test - vsock_diag.ko module for listing open sockets
10 The following prerequisite steps are not automated and must be performed prior
11 to running tests:
13 1. Build the kernel and these tests.
14 2. Install the kernel and tests on the host.
15 3. Install the kernel and tests inside the guest.
16 4. Boot the guest and ensure that the AF_VSOCK transport is enabled.
18 Invoke test binaries in both directions as follows:
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
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