OSDN Git Service

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)
commit421221234ada41b4a9f0beeb08e30b07388bd4bd
tree6dff8bc138a2e9b88ed2bd8156645684546979e0
parentf0428b3dcb2d7efe4b2a2304841645b48f0b6499
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