mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-15 22:54:01 +00:00
The socket module is to provide interfaces below, the unix domain socket can be created by command monitor for the communication between DM instance and libvirt daemon or kata container: init_socket: allocate a new socket instance according to socket path deinit_socket: free a socket instance open_socket: open one unix domain socket server, initialize a socket, create one thread to listen to client, another thread to poll message from client. close_socket: close one unix domain socket server find_socket_client: find socket client instance according to fd write_socket_char: send message through unix domain socket server v1--v2: Update some log message format and copyright format. v2-->v3: Update SOCKET_MAX_CLIENT to 1H since the socket instance of command monitor only have one client (libvirt or kata container). Tracked-On: #5921 Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>