linux/arch/x86/kvm/svm
Paolo Bonzini 74905e3de8 KVM: nSVM: clarify recalc_intercepts() wrt CR8
The mysterious comment "We only want the cr8 intercept bits of L1"
dates back to basically the introduction of nested SVM, back when
the handling of "less typical" hypervisors was very haphazard.
With the development of kvm-unit-tests for interrupt handling,
the same code grew another vmcb_clr_intercept for the interrupt
window (VINTR) vmexit, this time with a comment that is at least
decent.

It turns out however that the same comment applies to the CR8 write
intercept, which is also a "recheck if an interrupt should be
injected" intercept.  The CR8 read intercept instead has not
been used by KVM for 14 years (commit 649d68643e, "KVM: SVM:
sync TPR value to V_TPR field in the VMCB"), so do not bother
clearing it and let one comment describe both CR8 write and VINTR
handling.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-01-09 05:35:21 -05:00
..
avic.c KVM: x86: nSVM: optimize svm_set_x2apic_msr_interception 2022-06-24 12:52:59 -04: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: nSVM: clarify recalc_intercepts() wrt CR8 2023-01-09 05:35:21 -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 ARM64: 2022-12-15 11:12:21 -08:00
svm.h x86/hyperv: KVM: Rename "hv_enlightenments" to "hv_vmcb_enlightenments" 2022-11-18 12:58:59 -05:00
vmenter.S Linux 6.1-rc6 2022-11-21 23:01:51 +01:00