[PATCH 2/2] vsock/virtio: Don't reset the created SOCKET during s2r

2025-02-06 Thread Junnan Wu
From: Ying Gao If suspend is executed during vsock communication and the socket is reset, the original socket will be unusable after resume. Judge the value of vdev->priv in function virtio_vsock_vqs_del, only when the function is invoked by virtio_vsock_remove, all vsock connections will be res

[PATCH 1/2] vsock/virtio: Move rx_buf_nr and rx_buf_max_nr initialization position

2025-02-06 Thread Junnan Wu
From: Ying Gao In function virtio_vsock_probe, it initializes the variables "rx_buf_nr" and "rx_buf_max_nr", but in function virtio_vsock_restore it doesn't. Move the initizalition position into function virtio_vsock_vqs_start. Once executing s2r twice in a row without initializing rx_buf_nr an