x86/traps: Fix typo in do_entry_CP()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Sep 2021 20:55:56 +0000 (21:55 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Nov 2021 19:13:17 +0000 (19:13 +0000)
commit512863ed238d7390f74d43f0ba298b1dfa8f4803
treedd2107a6d6d5eb93dc5baa7961b939a604adc0d5
parent3231ddf9dc384a386df43fd1c0a0bcbba9d79569
x86/traps: Fix typo in do_entry_CP()

The call to debugger_trap_entry() should pass the correct vector.  The
break-for-gdbsx logic is in practice unreachable because PV guests can't
generate #CP, but it will interfere with anyone inserting custom debugging
into debugger_trap_entry().

Fixes: 5ad05b9c2490 ("x86/traps: Implement #CP handler and extend #PF for shadow stacks")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/traps.c