KVM: x86: Tag APICv DISABLE inhibit, not ABSENT, if APICv is disabled
authorSean Christopherson <seanjc@google.com>
Wed, 20 Apr 2022 01:37:29 +0000 (01:37 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Apr 2022 17:16:12 +0000 (13:16 -0400)
commit80f0497c221112fc25845a8b68f1c5b4a23b3567
tree57ab08a1e1180f8ec6dc87e9e71954ff7eeaf540
parent5c697c367a66307a5d943c3449421aff2aa3ca4a
KVM: x86: Tag APICv DISABLE inhibit, not ABSENT, if APICv is disabled

Set the DISABLE inhibit, not the ABSENT inhibit, if APICv is disabled via
module param.  A recent refactoring to add a wrapper for setting/clearing
inhibits unintentionally changed the flag, probably due to a copy+paste
goof.

Fixes: 4f4c4a3ee53c ("KVM: x86: Trace all APICv inhibit changes and capture overall status")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220420013732.3308816-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c