Re: [PATCH v3 4/8] KVM: x86: Prioritize #UD on MOV DR over #GP due to non-zero CPL
From: Jim Mattson
Date: Mon Jun 15 2026 - 14:09:02 EST
On Fri, Jun 12, 2026 at 4:02 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> Manually handle the CPL check for MOV DR instructions instead of using the
> Priv flag, *after* checking for #UD scenarios, as #GP due to CPL>0 has
> lower priority than all #UDs.
>
> Fixes: 1e470be5a108 ("KVM: x86 emulator: fix mov dr to inject #UD when needed.")
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>