Re: [PATCH 7/9] KVM: x86: Move KVM's arbitrary task switch reason enums to x86.h

From: Huang, Kai

Date: Thu Jun 25 2026 - 20:49:17 EST


On Thu, 2026-06-25 at 15:04 -0700, Sean Christopherson wrote:
> Relocate KVM's TASK_SWITCH_<reason> enums from kvm_host.h to x86.h, as the
> enums are arbitrary values, i.e. not architectural, and are intended to be
> used only to translate vendor specific information to a common x86 reason
> when invoking kvm_task_switch().
>
> Opportunistically name the overall enum to help document the role of the
> values.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>