]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47e22df2f25f748756dcb6a7ae879ac10dfb9057
tree2980b67cd114ccd40eb4057f8717c2c9f72b036d
parent1759bd9893fafcabfa74598442254d6b4b3d7a3f
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