summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2026-03-13 13:20:42 +0100
committerSean Christopherson <seanjc@google.com>2026-05-13 11:12:40 -0700
commit156615264fd3430e7f90b36f46076b2f6ec4a24a (patch)
treee9a9bd3bc4f7466b475d039fe9fcdcabdae57516 /include/linux/debugobjects.h
parent3b20a19c592d31d90594565de89f974135b22819 (diff)
KVM: VFIO: update coherency only if file was deleted
When servicing a KVM_DEV_VFIO_FILE_DEL request, if a file is removed from kv->file_list, kv->noncoherent needs to be updated, in case we can revert to using coherent DMA. However, if we found no candidate to remove, there is no need to re-scan the list, so do it only if a matching file was found. To simplify the control flow, use a mutex guard so that we can return early from within the search loop if the maching file is found. Signed-off-by: Carlos López <clopez@suse.de> Reviewed-by: Alex Williamson <alex@shazbot.org> Link: https://patch.msgid.link/20260313122040.1413091-7-clopez@suse.de Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions