x86/gdbsx: Move domain_pause_for_debugger() into gdbsx
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Apr 2022 00:38:32 +0000 (01:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Apr 2022 19:39:34 +0000 (20:39 +0100)
commit4de0f05fcf7d57c25aaef2f4aa064812b8628a72
tree632a256b5ab4223e3e87065c05532f497b8a719f
parent203156ef36df87a9a4161e15889b901df5ef58eb
x86/gdbsx: Move domain_pause_for_debugger() into gdbsx

domain_pause_for_debugger() is guest debugging (CONFIG_GDBSX) not host
debugging (CONFIG_CRASH_DEBUG).

Move it into the new gdbsx.c to drop the (incorrect) ifdefary, and provide a
static inline in the !CONFIG_GDBSX case so callers can optimise away
everything rather than having to emit a call to an empty function.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain.c
xen/arch/x86/gdbsx.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/realmode.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/debugger.h
xen/arch/x86/include/asm/gdbsx.h
xen/arch/x86/nmi.c
xen/arch/x86/traps.c