KVM: x86: Move "apicv_active" into "struct kvm_lapic"
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 23:05:47 +0000 (23:05 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:24 +0000 (06:21 -0400)
commitce0a58f4756c14d7646cfdf279dbaada9d7712a0
tree2980b67cd114ccd40eb4057f8717c2c9f72b036d
parentae801e1303e939ad5ebd9f390bdcc57275ada33b
KVM: x86: Move "apicv_active" into "struct kvm_lapic"

Move the per-vCPU apicv_active flag into KVM's local APIC instance.
APICv is fully dependent on an in-kernel local APIC, but that's not at
all clear when reading the current code due to the flag being stored in
the generic kvm_vcpu_arch struct.

No functional change intended.

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