KVM: x86: Use common 'enable_apicv' variable for both APICv and AVIC
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 9 Jun 2021 15:09:08 +0000 (17:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:33 +0000 (13:09 -0400)
commitfdf513e37a3bd9f498179c878cfcd59693bf507c
treee32b555386144d0c7eb4ad011b3309f77309f9f5
parent7d62874f69d7e5c1c1063a5848075bd1adff3998
KVM: x86: Use common 'enable_apicv' variable for both APICv and AVIC

Unify VMX and SVM code by moving APICv/AVIC enablement tracking to common
'enable_apicv' variable. Note: unlike APICv, AVIC is disabled by default.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210609150911.1471882-2-vkuznets@redhat.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.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/vmx/capabilities.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c