diff options
author | 2025-08-12 17:51:18 +0800 | |
---|---|---|
committer | 2025-08-26 03:38:19 -0400 | |
commit | 528d92bfc0937a6a1ec837dbbcb3612a8545cd37 (patch) | |
tree | 03ca3899c35952a21464772d2d54188ad4644a3e /tools/perf/scripts/python | |
parent | vhost: Fix ioctl # for VHOST_[GS]ET_FORK_FROM_OWNER (diff) | |
download | wireguard-linux-528d92bfc0937a6a1ec837dbbcb3612a8545cd37.tar.xz wireguard-linux-528d92bfc0937a6a1ec837dbbcb3612a8545cd37.zip |
virtio_input: Improve freeze handling
When executing suspend to ram, if lacking the operations
to reset device and free unused buffers before deleting
a vq, resource leaks and inconsistent device status will
appear.
According to chapter "3.3.1 Driver Requirements: Device Cleanup:"
of virtio-specification:
Driver MUST ensure a virtqueue isn’t live
(by device reset) before removing exposed
buffers.
Therefore, modify the virtinput_freeze function to reset the
device and delete the unused buffers before deleting the
virtqueue, just like virtinput_remove does.
Co-developed-by: Ying Xu <ying123.xu@samsung.com>
Signed-off-by: Ying Xu <ying123.xu@samsung.com>
Co-developed-by: Junnan Wu <junnan01.wu@samsung.com>
Signed-off-by: Junnan Wu <junnan01.wu@samsung.com>
Signed-off-by: Ying Gao <ying01.gao@samsung.com>
Message-Id: <20250812095118.3622717-1-ying01.gao@samsung.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions