x86/shim: map and unmap page tables in replace_va_mapping
authorWei Liu <wei.liu2@citrix.com>
Thu, 16 Apr 2020 09:01:46 +0000 (11:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Apr 2020 09:01:46 +0000 (11:01 +0200)
commit6c8afe5aadb33761431b24157d99b25eac15fc7e
tree094f31e88f0b6872bc12eb903990522efcee27de
parenta8e0c228c79f3a000e19183090eb41fca173b034
x86/shim: map and unmap page tables in replace_va_mapping

Also, introduce lYe_from_lXe() macros which do not rely on the direct
map when walking page tables. Unfortunately, they cannot be inline
functions due to the header dependency on domain_page.h, so keep them as
macros just like map_lYt_from_lXe().

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/shim.c
xen/include/asm-x86/page.h