Re: [PATCH v6 01/16] KVM: nSVM: Stop leaking single-stepping on VMRUN into L2

From: Sean Christopherson

Date: Fri May 22 2026 - 19:12:30 EST


On Wed, May 06, 2026, Yosry Ahmed wrote:
> According to the APM, TF on VMRUN causes a #DB after VMRUN completes on
> the _host_ side. However, KVM injects a #DB in L2 context instead (or
> exits to userspace if KVM_GUESTDBG_SINGLESTEP is set) in
> kvm_skip_emulated_instruction().
>
> Introduce __kvm_skip_emulated_instruction(),

Eh, just make svm_skip_emulated_instruction() visible via svm.h and call that
directly. No need to bring SVM's mess into common KVM.