Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

vsock: initiate a quick handshake to avoid VSOCK_DEFAULT_CONNECT_TIMEOUT #2656

Closed
wants to merge 1 commit into from

Commits on Apr 30, 2020

  1. vsock: initiate a quick handshake to avoid VSOCK_DEFAULT_CONNECT_TIMEOUT

    We will suffer default two seconds timeout, when kata-runtime initiates
    a connection to agent server, but right now vsock transport in guest part
    isn't ready.
    Here, taking advices from Stefan Hajnoczi, we will do a quick handshake
    to ensure host initiating connection until vsock device is completely ready.
    The quick handshake follows above steps:
    1. kata-runtime listens on a vsock port
    2. agent.vsock_host_port=PORT is added to the kernel command-line options
    3. kata-agent parses the port number and connects to the host
    This commit covers the 1-2 parts in kata-runtime.
    
    Fixes: kata-containers#1917
    
    Signed-off-by: Penny Zheng <penny.zheng@arm.com>
    Pennyzct committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    4f4438d View commit details
    Browse the repository at this point in the history