linux-stable/drivers/virtio
David Hildenbrand abfae42078 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 13:01:47 +02:00
..
Kconfig
Makefile
virtio.c virtio: reenable config if freezing device failed 2024-04-13 13:01:47 +02:00
virtio_balloon.c virtio_balloon: Fix endless deflation and inflation on arm64 2023-11-08 17:26:35 +01:00
virtio_dma_buf.c
virtio_input.c
virtio_mem.c
virtio_mmio.c virtio-mmio: fix memory leak of vm_dev 2023-11-08 17:26:36 +01:00
virtio_pci_common.c
virtio_pci_common.h
virtio_pci_legacy.c
virtio_pci_modern.c
virtio_pci_modern_dev.c
virtio_ring.c virtio_ring: fix avail_wrap_counter in virtqueue_add_packed 2023-09-19 12:22:49 +02:00
virtio_vdpa.c