mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
This commit enables socket reconnection for vhost-user-fs backends. Note that, till this commit: - The re-establish of the slave communication channel is no supported. So the socket reconnection does not support virtiofsd with DAX enabled. - Inflight I/O tracking and restoring is not supported. Therefore, only virtio-fs daemons that are not processing inflight requests can work normally after reconnection. - To make the restarted virtiofsd work normally after reconnection, the internal status of virtiofsd should also be recovered. This is not the work of cloud-hypervisor. If the virtio-fs daemon does not support saving or restoring its internal status, then a re-mount in guest after socket reconnection should be performed. Signed-off-by: Jiachen Zhang <zhangjiachen.jaycee@bytedance.com>