diff options
| author | Xiong Weimin <xiongweimin@kylinos.cn> | 2026-06-26 10:05:44 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:45 -0400 |
| commit | 135f0abe31397694c06f5e28bf93d5e123756abc (patch) | |
| tree | 6b7b70434e922ae4211f720165d05a3cf84b4067 /include | |
| parent | b07513e7475fb33d6dee95569baca60379a1b79a (diff) | |
| download | linux-135f0abe31397694c06f5e28bf93d5e123756abc.tar.gz linux-135f0abe31397694c06f5e28bf93d5e123756abc.zip | |
vdpa_sim: clear pending_kick on device reset
vdpasim_kick_vq() sets pending_kick when a virtqueue is kicked while
the device is suspended (!running but DRIVER_OK). vdpasim_resume()
later replays kicks for all virtqueues when pending_kick is set.
vdpasim_do_reset() clears running and status but leaves pending_kick
unchanged. If a kick is deferred during suspend and the device is
reset before resume, a later resume can spuriously kick every
virtqueue even though no new work was queued after reset.
Clear pending_kick in vdpasim_do_reset() together with the other
device state that must not survive a reset.
Tested-on: openEuler VM (6.16.8, /usr/src/linux-6.16.8)
Tested-by: Xiong Weimin <xiongweimin@kylinos.cn>
Signed-off-by: Xiong Weimin <xiongweimin@kylinos.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260626020545.607600-2-15927021679@163.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
