diff options
author | Peter Gonda <pgonda@google.com> | 2022-05-02 19:58:07 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-06 20:08:04 +0300 |
commit | 0c2c7c069285374fc8feacddc0498f8ab7627117 (patch) | |
tree | c6ec000f4bca25b5db8ce92b2d9d97cc2fba0c96 /arch/arm64/tools | |
parent | 04144108a1ab9792e7a60b3a9e30c614cd3e0e9f (diff) | |
download | linux-0c2c7c069285374fc8feacddc0498f8ab7627117.tar.xz |
KVM: SEV: Mark nested locking of vcpu->lock
svm_vm_migrate_from() uses sev_lock_vcpus_for_migration() to lock all
source and target vcpu->locks. Unfortunately there is an 8 subclass
limit, so a new subclass cannot be used for each vCPU. Instead maintain
ownership of the first vcpu's mutex.dep_map using a role specific
subclass: source vs target. Release the other vcpu's mutex.dep_maps.
Fixes: b56639318bb2b ("KVM: SEV: Add support for SEV intra host migration")
Reported-by: John Sperbeck<jsperbeck@google.com>
Suggested-by: David Rientjes <rientjes@google.com>
Suggested-by: Sean Christopherson <seanjc@google.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Peter Gonda <pgonda@google.com>
Message-Id: <20220502165807.529624-1-pgonda@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm64/tools')
0 files changed, 0 insertions, 0 deletions