]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:32:55 +0000 (09:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:52 +0000 (11:01 -0400)
commit848c175bc21b5b75f64530956dd16db10e99f4f4
tree6dff8bc138a2e9b88ed2bd8156645684546979e0
parent425ca99f01e4e85c66df7e712bd65efa73c0fec9
KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET

Stuff vcpu->arch.apic_base and apic->base_address directly during APIC
reset, as opposed to bouncing through kvm_set_apic_base() while fudging
the ENABLE bit during creation to avoid the other, unwanted side effects.

This is a step towards consolidating the APIC RESET logic across x86,
VMX, and SVM.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-18-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c