diff options
author | Shameer Kolothum <[email protected]> | 2024-02-29 09:11:52 +0000 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-03-05 15:15:13 -0700 |
commit | fd94213e1417d28b933d4a3d41ad02eac1b29ec2 (patch) | |
tree | 3bdcb6e3eeee699a13dcf35de450f39ec973e4d6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 5b992412776cdf2ec88b5b5138112e6b36e47995 (diff) |
hisi_acc_vfio_pci: Remove the deferred_reset logic
The deferred_reset logic was added to vfio migration drivers to prevent
a circular locking dependency with respect to mm_lock and state mutex.
This is mainly because of the copy_to/from_user() functions(which takes
mm_lock) invoked under state mutex. But for HiSilicon driver, the only
place where we now hold the state mutex for copy_to_user is during the
PRE_COPY IOCTL. So for pre_copy, release the lock as soon as we have
updated the data and perform copy_to_user without state mutex. By this,
we can get rid of the deferred_reset logic.
Link: https://lore.kernel.org/kvm/[email protected]/
Signed-off-by: Shameer Kolothum <[email protected]>
Reviewed-by: Brett Creeley <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Jason Gunthorpe <[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