Re: [PATCH] KVM: x86: Add a helper to dedup reporting of unhandled VM-Exits

From: Binbin Wu
Date: Mon Nov 03 2025 - 22:03:40 EST




On 10/31/2025 2:50 AM, Sean Christopherson wrote:
Add and use a helper, kvm_prepare_unexpected_reason_exit(), to dedup the
code that fills the exit reason and CPU when KVM encounters a VM-Exit that
KVM doesn't know how to handle.

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>

Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>