]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Change exit path of xen_failsafe_callback
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 May 2020 20:05:30 +0000 (22:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:10 +0000 (15:15 +0200)
commit0befd40d8124efdd4f1c6d6de61f5f58d5f36062
tree79355ad40ad7ff199bd230780a17b493d3d940fd
parentf00d350de01dd3dc4ec4cff7af678c345348c938
x86/entry: Change exit path of xen_failsafe_callback

xen_failsafe_callback() is invoked from XEN for two cases:

  1. Fault while reloading DS, ES, FS or GS
  2. Fault while executing IRET

 #1 retries the IRET after XEN has fixed up the segments.
 #2 injects a #GP which kills the task

For #1 there is no reason to go through the full exception return path
because the tasks TIF state is still the same. So just going straight to
the IRET path is good enough.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200521202118.423224507@linutronix.de
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S