diff options
author | Brett Creeley <[email protected]> | 2024-02-27 16:32:04 -0800 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-03-01 15:46:21 -0700 |
commit | 8512ed256334f6637fc0699ce794792c357544ec (patch) | |
tree | e14f2c54bc69b8e0c0a92ba0e8b4121a399df58d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 701ab935859fcfd4a8c8a97f3ee4fb5294a9d481 (diff) |
vfio/pds: Always clear the save/restore FDs on reset
After reset the VFIO device state will always be put in
VFIO_DEVICE_STATE_RUNNING, but the save/restore files will only be
cleared if the previous state was VFIO_DEVICE_STATE_ERROR. This
can/will cause the restore/save files to be leaked if/when the
migration state machine transitions through the states that
re-allocates these files. Fix this by always clearing the
restore/save files for resets.
Fixes: 7dabb1bcd177 ("vfio/pds: Add support for firmware recovery")
Cc: [email protected]
Signed-off-by: Brett Creeley <[email protected]>
Reviewed-by: Shannon Nelson <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions