diff options
author | Paolo Bonzini <[email protected]> | 2021-11-22 19:50:29 -0500 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-11-30 03:54:11 -0500 |
commit | 501b580c02339a83917cf3b44c445f2419b15dcb (patch) | |
tree | 620c5a71a4bb73fae9f2f30b5ba7773ad8f0d088 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4674164f0ac5fd553c38b2b8c49fe13297fed38b (diff) |
KVM: SEV: cleanup locking for KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM
Encapsulate the handling of the migration_in_progress flag for both VMs in
two functions sev_lock_two_vms and sev_unlock_two_vms. It does not matter
if KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM locks the destination struct kvm a bit
later, and this change 1) keeps the cleanup chain of labels smaller 2)
makes it possible for KVM_CAP_VM_COPY_ENC_CONTEXT_FROM to reuse the logic.
Cc: Peter Gonda <[email protected]>
Cc: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions