diff options
author | Dragos Tatulea <[email protected]> | 2023-12-25 15:42:09 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-01-10 13:01:37 -0500 |
commit | c7e194402be3ed385dfaefaf1681bb731fd776e2 (patch) | |
tree | f55464933cc00857e9d3b4e6fb5ad7e147bf14a3 /scripts/gdb/linux/utils.py | |
parent | 95e7249691f082a5178d4d6f60fcdee91da458ab (diff) |
vdpa: Track device suspended state
Set vdpa device suspended state on successful suspend. Clear it on
successful resume and reset.
The state will be locked by the vhost_vdpa mutex. The mutex is taken
during suspend, resume and reset in vhost_vdpa_unlocked_ioctl. The
exception is vhost_vdpa_open which does a device reset but that should
be safe because it can only happen before the other ops.
Signed-off-by: Dragos Tatulea <[email protected]>
Suggested-by: Eugenio Pérez <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions