linux-stable/drivers/virtio
Stephan Gerhold 840d81ff43 virtio_mmio: Restore guest page size on resume
[ Upstream commit e0c2ce8217 ]

Virtio devices might lose their state when the VMM is restarted
after a suspend to disk (hibernation) cycle. This means that the
guest page size register must be restored for the virtio_mmio legacy
interface, since otherwise the virtio queues are not functional.

This is particularly problematic for QEMU that currently still defaults
to using the legacy interface for virtio_mmio. Write the guest page
size register again in virtio_mmio_restore() to make legacy virtio_mmio
devices work correctly after hibernation.

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Message-Id: <20220621110621.3638025-3-stephan.gerhold@kernkonzept.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 20:40:31 +02:00
..
Kconfig
Makefile
virtio.c
virtio_balloon.c virtio-balloon: fix managed page counts when migrating pages between zones 2019-12-21 10:41:57 +01:00
virtio_input.c
virtio_mmio.c virtio_mmio: Restore guest page size on resume 2022-07-21 20:40:31 +02:00
virtio_pci_common.c virtio_pci: Support surprise removal of virtio pci device 2022-01-11 13:38:11 +01:00
virtio_pci_common.h
virtio_pci_legacy.c
virtio_pci_modern.c
virtio_ring.c virtio: Improve vq->broken access to avoid any compiler optimization 2021-09-03 09:44:40 +02:00