diff options
author | Jan Beulich <[email protected]> | 2019-11-11 15:32:59 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-11-19 21:58:28 +0100 |
commit | 922eea2ce5c799228d9ff1be9890e6873ce8fff6 (patch) | |
tree | 32e78a83ff9255e5e773bf3e25f04b34d762e655 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 29b810f5a5ec127d3143770098e05981baa3eb77 (diff) |
x86/xen/32: Simplify ring check in xen_iret_crit_fixup()
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions