Re: [PATCH] KVM: x86: Add a helper to dedup reporting of unhandled VM-Exits
From: Huang, Kai
Date: Fri Oct 31 2025 - 06:10:58 EST
On Thu, 2025-10-30 at 11:50 -0700, 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>
>
Acked-by: Kai Huang <kai.huang@xxxxxxxxx>