linux-stable/drivers/virtio
David Hildenbrand ac16beecbb virtio: reenable config if freezing device failed
[ Upstream commit 310227f428 ]

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: Sasha Levin <sashal@kernel.org>
2024-04-03 15:32:25 +02:00
..
Kconfig virtio-pci: Initialize the supported admin commands 2023-12-19 11:51:32 -07:00
Makefile virtio-pci: Introduce APIs to execute legacy IO admin commands 2023-12-19 11:51:33 -07:00
virtio.c virtio: reenable config if freezing device failed 2024-04-03 15:32:25 +02:00
virtio_anchor.c
virtio_balloon.c virtio: features, fixes 2024-01-18 16:44:03 -08:00
virtio_dma_buf.c
virtio_input.c
virtio_mem.c mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER 2024-01-08 15:27:15 -08:00
virtio_mmio.c virtio-mmio: fix memory leak of vm_dev 2023-10-18 11:29:09 -04:00
virtio_pci_admin_legacy_io.c virtio-pci: Introduce APIs to execute legacy IO admin commands 2023-12-19 11:51:33 -07:00
virtio_pci_common.c virtio: features, fixes 2024-01-18 16:44:03 -08:00
virtio_pci_common.h virtio-pci: Introduce APIs to execute legacy IO admin commands 2023-12-19 11:51:33 -07:00
virtio_pci_legacy.c virtio-pci: Fix legacy device flag setting error in probe 2023-08-10 15:24:28 -04:00
virtio_pci_legacy_dev.c
virtio_pci_modern.c virtio-pci: Initialize the supported admin commands 2023-12-19 11:51:32 -07:00
virtio_pci_modern_dev.c virtio-pci: Introduce admin virtqueue 2023-12-19 11:51:31 -07:00
virtio_ring.c virtio: packed: fix unmap leak for indirect desc table 2024-03-26 18:17:35 -04:00
virtio_vdpa.c vhost-vdpa: clean iotlb map during reset for older userspace 2023-11-01 09:20:00 -04:00