linux/arch/x86/kvm/svm
Sean Christopherson 1ba59a4454 KVM: SVM: Always update local APIC on writes to logical dest register
Update the vCPU's local (virtual) APIC on LDR writes even if the write
"fails".  The APIC needs to recalc the optimized logical map even if the
LDR is invalid or zero, e.g. if the guest clears its LDR, the optimized
map will be left as is and the vCPU will receive interrupts using its
old LDR.

Fixes: 18f40c53e1 ("svm: Add VMEXIT handlers for AVIC")
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230106011306.85230-26-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-01-13 10:45:32 -05:00
..
avic.c KVM: SVM: Always update local APIC on writes to logical dest register 2023-01-13 10:45:32 -05:00
hyperv.c KVM: nSVM: hyper-v: Enable L2 TLB flush 2022-11-18 12:59:18 -05:00
hyperv.h KVM: nSVM: hyper-v: Enable L2 TLB flush 2022-11-18 12:59:18 -05:00
nested.c KVM: x86: Inhibit APIC memslot if x2APIC and AVIC are enabled 2023-01-13 10:45:25 -05:00
pmu.c KVM: x86/pmu: Defer counter emulated overflow via pmc->prev_counter 2022-11-09 12:31:36 -05:00
sev.c KVM: SVM: Replace kmap_atomic() with kmap_local_page() 2022-11-30 16:13:09 -08:00
svm_onhyperv.c KVM: x86: Rename 'enable_direct_tlbflush' to 'enable_l2_tlb_flush' 2022-11-18 12:59:00 -05:00
svm_onhyperv.h KVM: x86: Rename 'enable_direct_tlbflush' to 'enable_l2_tlb_flush' 2022-11-18 12:59:00 -05:00
svm_ops.h KVM: SVM: restore host save area from assembly 2022-11-09 12:25:33 -05:00
svm.c KVM: SVM: Replace "avic_mode" enum with "x2avic_enabled" boolean 2023-01-13 10:45:26 -05:00
svm.h KVM: SVM: Replace "avic_mode" enum with "x2avic_enabled" boolean 2023-01-13 10:45:26 -05:00
vmenter.S KVM: SVM: move MSR_IA32_SPEC_CTRL save/restore to assembly 2022-11-09 12:25:53 -05:00