tools/libs/ctrl: use common p2m mapping code in xc_domain_resume_any()
authorJuergen Gross <jgross@suse.com>
Fri, 4 Jun 2021 06:02:11 +0000 (08:02 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 4 Jun 2021 17:56:46 +0000 (18:56 +0100)
commitf183854facad996fe891c086c024bca7cbcdc1e4
treeab1b630519e51e351a6218be402e71e260d3329d
parentbd7a29c3d0b937ab542abea06ff1b575abe7247a
tools/libs/ctrl: use common p2m mapping code in xc_domain_resume_any()

Instead of open coding the mapping of the p2m list use the already
existing xc_core_arch_map_p2m() call, especially as the current code
does not support guests with the linear p2m map. It should be noted
that this code is needed for colo/remus only.

Switching to xc_core_arch_map_p2m() drops the need to bail out for
bitness of tool stack and guest differing.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/ctrl/xc_resume.c
tools/ocaml/libs/xc/xenctrl_stubs.c