linux-stable/drivers/virtio
Stephan Gerhold 387c237760 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-22 10:21:47 +02:00
..
Kconfig drivers/virtio: Enable virtio mem for ARM64 2022-03-28 16:52:57 -04:00
Makefile
virtio.c Revert "virtio: use virtio_device_ready() in virtio_device_restore()" 2022-03-30 04:18:14 -04:00
virtio_balloon.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_dma_buf.c
virtio_input.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_mem.c mm: enforce pageblock_order < MAX_ORDER 2022-03-22 15:57:06 -07:00
virtio_mmio.c virtio_mmio: Restore guest page size on resume 2022-07-22 10:21:47 +02:00
virtio_pci_common.c virtio-pci: Remove wrong address verification in vp_del_vqs() 2022-06-22 14:28:11 +02:00
virtio_pci_common.h Revert "virtio_pci: harden MSI-X interrupts" 2022-03-28 16:52:59 -04:00
virtio_pci_legacy.c Revert "virtio_pci: harden MSI-X interrupts" 2022-03-28 16:52:59 -04:00
virtio_pci_legacy_dev.c virtio/virtio_pci_legacy_dev: ensure the correct return value 2022-01-14 18:50:53 -05:00
virtio_pci_modern.c virtio: pci: check bar values read from virtio config space 2022-03-28 16:52:59 -04:00
virtio_pci_modern_dev.c virtio: pci: Fix an error handling path in vp_modern_probe() 2022-06-14 18:44:57 +02:00
virtio_ring.c virtio_ring: remove flags check for unmap packed indirect desc 2022-03-28 16:52:58 -04:00
virtio_vdpa.c vdpa: factor out vdpa_set_features_unlocked for vdpa internal use 2022-03-04 11:56:33 -05:00