KVM: SVM: svm_set_vintr don't warn if AVIC is active but is about to be deactivated
authorMaxim Levitsky <mlevitsk@redhat.com>
Tue, 13 Jul 2021 14:20:16 +0000 (17:20 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jul 2021 20:59:00 +0000 (16:59 -0400)
commitf1577ab21442476a1015d09e861c08ca76262c06
tree399312800191eaf4e0bef020972c886b262004e5
parentbb000f640e76c4c2402990d0613d4269e9c6dd29
KVM: SVM: svm_set_vintr don't warn if AVIC is active but is about to be deactivated

It is possible for AVIC inhibit and AVIC active state to be mismatched.
Currently we disable AVIC right away on vCPU which started the AVIC inhibit
request thus this warning doesn't trigger but at least in theory,
if svm_set_vintr is called at the same time on multiple vCPUs,
the warning can happen.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210713142023.106183-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c