]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: SVM: Replace "avic_mode" enum with "x2avic_enabled" boolean
authorSean Christopherson <seanjc@google.com>
Fri, 6 Jan 2023 01:12:44 +0000 (01:12 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Jan 2023 15:45:26 +0000 (10:45 -0500)
commitf628a34a9d5228d963e3c2f15e6ee92856a0a66b
treed32d07bd1f1de70f67650876806e1a6f96498b62
parent2008fab3453019fd89fa06029be95d30e1a8e66c
KVM: SVM: Replace "avic_mode" enum with "x2avic_enabled" boolean

Replace the "avic_mode" enum with a single bool to track whether or not
x2AVIC is enabled.  KVM already has "apicv_enabled" that tracks if any
flavor of AVIC is enabled, i.e. AVIC_MODE_NONE and AVIC_MODE_X1 are
redundant and unnecessary noise.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20230106011306.85230-12-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h