Re: [PATCH 2/2] x86/Xen/32: simplify xen_iret_crit_fixup's ring check

From: JÃrgen GroÃ
Date: Tue Nov 19 2019 - 08:18:19 EST


On 11.11.19 15:32, Jan Beulich wrote:
This can be had with two instead of six insns, by just checking the high
CS.RPL bit.

Also adjust the comment - there would be no #GP in the mentioned cases,
as there's no segment limit violation or alike. Instead there'd be #PF,
but that one reports the target EIP of said branch, not the address of
the branch insn itself.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen