diff options
author | Oliver Upton <[email protected]> | 2024-04-22 20:01:40 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2024-04-25 13:19:55 +0100 |
commit | ea54dd374232cc3b6d0ac0a89d715d61ebb04bf6 (patch) | |
tree | da27fc03564121f8a37927d596f93b4ab0832ea9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fec50db7033ea478773b159e0e2efb135270e3b7 (diff) |
KVM: Treat the device list as an rculist
A subsequent change to KVM/arm64 will necessitate walking the device
list outside of the kvm->lock. Prepare by converting to an rculist. This
has zero effect on the VM destruction path, as it is expected every
reader is backed by a reference on the kvm struct.
On the other hand, ensure a given device is completely destroyed before
dropping the kvm->lock in the release() path, as certain devices expect
to be a singleton (e.g. the vfio-kvm device).
Cc: Paolo Bonzini <[email protected]>
Cc: Sean Christopherson <[email protected]>
Signed-off-by: Oliver Upton <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions