x86/shadow: have just a single instance of sh_set_toplevel_shadow()
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Jul 2020 11:58:56 +0000 (13:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Jul 2020 11:58:56 +0000 (13:58 +0200)
commit5fd152ea7dfbd7e83c4f398bc8d7273466b88cbb
treea39edd57418a7795c011492a79825c2d0425c99c
parentef3b0d8d2c3975c5cdd6a521896d85e97b74e924
x86/shadow: have just a single instance of sh_set_toplevel_shadow()

The only guest/shadow level dependent piece here is the call to
sh_make_shadow(). Make a pointer to the respective function an
argument of sh_set_toplevel_shadow(), allowing it to be moved to
common.c.

This implies making get_shadow_status() available to common.c; its set
and delete counterparts are moved along with it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h