]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Don't call error_entry() for XENPV
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Tue, 3 May 2022 03:21:06 +0000 (11:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jul 2022 10:53:49 +0000 (12:53 +0200)
commit4ae8f6fef51911ef6ead4387ce8eeec0d9900522
tree3059178a410fa1a09245633a6aeae5a3050d18ee
parent4d412f40e9aaa2b06895fc5d4779c06eda5d942c
x86/entry: Don't call error_entry() for XENPV

commit f8baa36f74bbb72199374251441fe3b48e2bfda1 upstream.

XENPV guests enter already on the task stack and they can't fault for
native_iret() nor native_load_gs_index() since they use their own pvop
for IRET and load_gs_index(). A CR3 switch is not needed either.

So there is no reason to call error_entry() in XENPV.

  [ bp: Massage commit message. ]

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20220503032107.680190-6-jiangshanlai@gmail.com
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/entry_64.S