linux-stable/drivers/virtio
David Hildenbrand 5908fb34c0 virtio: reenable config if freezing device failed
commit 310227f428 upstream.

Currently, we don't reenable the config if freezing the device failed.

For example, virtio-mem currently doesn't support suspend+resume, and
trying to freeze the device will always fail. Afterwards, the device
will no longer respond to resize requests, because it won't get notified
about config changes.

Let's fix this by re-enabling the config if freezing fails.

Fixes: 22b7050a02 ("virtio: defer config changed notifications")
Cc: <stable@kernel.org>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20240213135425.795001-1-david@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-13 12:50:16 +02:00
..
Kconfig
Makefile
virtio.c virtio: reenable config if freezing device failed 2024-04-13 12:50:16 +02:00
virtio_balloon.c virtio_balloon: Fix endless deflation and inflation on arm64 2023-11-08 11:22:15 +01:00
virtio_input.c
virtio_mmio.c virtio-mmio: fix memory leak of vm_dev 2023-11-08 11:22:15 +01:00
virtio_pci_common.c virtio-pci: Remove wrong address verification in vp_del_vqs() 2022-06-25 11:49:17 +02:00
virtio_pci_common.h
virtio_pci_legacy.c
virtio_pci_modern.c
virtio_ring.c treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00