xen: make gdbsx support configurable
authorJuergen Gross <jgross@suse.com>
Thu, 19 Dec 2019 07:42:09 +0000 (08:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Jan 2020 18:37:25 +0000 (18:37 +0000)
commite726a82ca0dce1e00a181f478a21f0045cde0e06
tree091892cfd4dd30ddb3fa4d57048fe8c7eae31a65
parent137a233186b6d4368e19dada927895d83b2a6430
xen: make gdbsx support configurable

Gdbsx support in the hypervisor is rarely used and it is opening a
way for dom0 to modify the running hypervisor by very easy means.

Remove the possibility to read/write hypervisor memory, it was never
used by gdbsx.

Add a Kconfig option to control support of gdbsx. Default is on.

While at it correct a wrong comment in related code and remove dead
code.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Kconfig.debug
xen/arch/x86/Makefile
xen/arch/x86/debug.c
xen/arch/x86/domctl.c
xen/include/asm-x86/debugger.h