Skip to content
Commit 3f5ad8be authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: hyperv: fix locking of struct kvm_hv fields



Introduce a new mutex to avoid an AB-BA deadlock between kvm->lock and
vcpu->mutex.  Protect accesses in kvm_hv_setup_tsc_page too, as suggested
by Roman.

Reported-by: default avatarDmitry Vyukov <dvyukov@google.com>
Reviewed-by: default avatarRoman Kagan <rkagan@virtuozzo.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 83781d18
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment