OSDN Git Service

Merge branch 'vsock-virtio-add-support-for-device-suspend-resume'
authorJakub Kicinski <kuba@kernel.org>
Mon, 2 May 2022 23:04:36 +0000 (16:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 May 2022 23:04:37 +0000 (16:04 -0700)
commit0530a683fc858aa641d88ad83315ea53c27bce10
tree3247afa5dcf219a903cd770f6b6e3bcf6fd6685d
parent954f46d2f0b4a76405a5e0788e3f80a24c657fd4
parentbd50c5dc182b0a52599f87b429f9a5a9cbfc9b1c
Merge branch 'vsock-virtio-add-support-for-device-suspend-resume'

Stefano Garzarella says:

====================
vsock/virtio: add support for device suspend/resume

Vilas reported that virtio-vsock no longer worked properly after
suspend/resume (echo mem >/sys/power/state).
It was impossible to connect to the host and vice versa.

Indeed, the support has never been implemented.

This series implement .freeze and .restore callbacks of struct virtio_driver
to support device suspend/resume.

The first patch factors our the code to initialize and delete VQs.
The second patch uses that code to support device suspend/resume.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
====================

Link: https://lore.kernel.org/r/20220428132241.152679-1-sgarzare@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>