x86/shadow: refactor shadow_vram_{get,put}_l1e()
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Oct 2020 13:25:42 +0000 (14:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Oct 2020 13:25:42 +0000 (14:25 +0100)
commit8ac7e452a6e9fb3c8314fe92b2e1ebb0937fa0dd
tree99401060029d03f2f8242911d2feec651cd24c52
parent6e2ee3dfd660d9fde96243da7d565244b4d2f164
x86/shadow: refactor shadow_vram_{get,put}_l1e()

By passing the functions an MFN and flags, only a single instance of
each is needed; they were pretty large for being inline functions
anyway.

While moving the code, also adjust coding style and add const where
sensible / possible.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/hvm.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h