Skip to content

Commit 80f0497

Browse files
sean-jcbonzini
authored andcommitted
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: 4f4c4a3 ("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>
1 parent 5c697c3 commit 80f0497

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9111,7 +9111,7 @@ static void kvm_apicv_init(struct kvm *kvm)
91119111

91129112
if (!enable_apicv)
91139113
set_or_clear_apicv_inhibit(inhibits,
9114-
APICV_INHIBIT_REASON_ABSENT, true);
9114+
APICV_INHIBIT_REASON_DISABLE, true);
91159115
}
91169116

91179117
static void kvm_sched_yield(struct kvm_vcpu *vcpu, unsigned long dest_id)

0 commit comments

Comments
 (0)