]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Make APICv inhibit reasons an enum and cleanup naming
authorSean Christopherson <seanjc@google.com>
Fri, 11 Mar 2022 04:35:15 +0000 (04:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Apr 2022 09:34:44 +0000 (05:34 -0400)
commit968e0f9909e58601d5a456b3f4f7e285bde0b28b
tree28bde10e04f54efbaf807f8675a3348f0f3f5042
parent97e550abdddb439d3974472dee06c6f868e0fd25
KVM: x86: Make APICv inhibit reasons an enum and cleanup naming

Use an enum for the APICv inhibit reasons, there is no meaning behind
their values and they most definitely are not "unsigned longs".  Rename
the various params to "reason" for consistency and clarity (inhibit may
be confused as a command, i.e. inhibit APICv, instead of the reason that
is getting toggled/checked).

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220311043517.17027-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/trace.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c