Back to home page

OSCL-LXR

 
 

    


0001 AF_VSOCK test suite
0002 -------------------
0003 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
0004 Hyper-V.
0005 
0006 The following tests are available:
0007 
0008   * vsock_test - core AF_VSOCK socket functionality
0009   * vsock_diag_test - vsock_diag.ko module for listing open sockets
0010 
0011 The following prerequisite steps are not automated and must be performed prior
0012 to running tests:
0013 
0014 1. Build the kernel, make headers_install, and build these tests.
0015 2. Install the kernel and tests on the host.
0016 3. Install the kernel and tests inside the guest.
0017 4. Boot the guest and ensure that the AF_VSOCK transport is enabled.
0018 
0019 Invoke test binaries in both directions as follows:
0020 
0021   # host=server, guest=client
0022   (host)# $TEST_BINARY --mode=server \
0023                        --control-port=1234 \
0024                        --peer-cid=3
0025   (guest)# $TEST_BINARY --mode=client \
0026                         --control-host=$HOST_IP \
0027                         --control-port=1234 \
0028                         --peer-cid=2
0029 
0030   # host=client, guest=server
0031   (guest)# $TEST_BINARY --mode=server \
0032                         --control-port=1234 \
0033                         --peer-cid=2
0034   (host)# $TEST_BINARY --mode=client \
0035                        --control-port=$GUEST_IP \
0036                        --control-port=1234 \
0037                        --peer-cid=3