diff options
| author | Yuho Choi <oss.patchbox@gmail.com> | 2026-09-26 16:20:27 -0400 |
|---|---|---|
| committer | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2026-10-14 01:24:53 +0300 |
| commit | 8907eb42c08b8eebe0f81fee256b34b5675d0e5a (patch) | |
| tree | 00652a0c2fb1a16215dbdbb44ed7d321203a2779 /scripts/basic/split-include.c | |
| parent | 5e0ed1108504dae408e8cfaabf7ee5f7bb180bca (diff) | |
| download | linux-8907eb42c08b8eebe0f81fee256b34b5675d0e5a.tar.gz linux-8907eb42c08b8eebe0f81fee256b34b5675d0e5a.zip | |
drm/virtio: Reset device before deleting virtqueues on freeze
virtgpu_freeze() waits for the control and cursor queues to drain and
then deletes the virtqueues, but nothing tells the device to stop first.
del_vqs() frees the vring backing, but does not provide a generic device
quiesce operation. In particular, modern virtio-pci keeps enabled queues
active until the device is reset, so the device is left DRIVER_OK with
its queues pointing at memory that has been freed and may be reused while
the guest is suspended. virtio_device_restore() only resets the device
later, on resume.
Reset the device before deleting the virtqueues, the way
virtio_gpu_deinit() already does on removal.
Fixes: cad6a879a7fb ("drm/virtio: Freeze and restore hooks to support suspend and resume")
Cc: stable@vger.kernel.org
Signed-off-by: Yuho Choi <oss.patchbox@gmail.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patch.msgid.link/20260926202040.1313385-1-oss.patchbox@gmail.com
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
