Commit 80f0497c authored by Sean Christopherson's avatar Sean Christopherson Committed by Paolo Bonzini

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: 4f4c4a3e ("KVM: x86: Trace all APICv inhibit changes and capture overall status")
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220420013732.3308816-2-seanjc@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5c697c36
...@@ -9111,7 +9111,7 @@ static void kvm_apicv_init(struct kvm *kvm) ...@@ -9111,7 +9111,7 @@ static void kvm_apicv_init(struct kvm *kvm)
if (!enable_apicv) if (!enable_apicv)
set_or_clear_apicv_inhibit(inhibits, set_or_clear_apicv_inhibit(inhibits,
APICV_INHIBIT_REASON_ABSENT, true); APICV_INHIBIT_REASON_DISABLE, true);
} }
static void kvm_sched_yield(struct kvm_vcpu *vcpu, unsigned long dest_id) static void kvm_sched_yield(struct kvm_vcpu *vcpu, unsigned long dest_id)
......
Markdown is supported
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