x86_64/mm: switch to new APIs in setup_m2p_table
authorWei Liu <wei.liu2@citrix.com>
Thu, 22 Apr 2021 12:13:34 +0000 (14:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:13:34 +0000 (14:13 +0200)
commit7e2fdcdb3e0fa215f08571037f6dea4abb3e94fb
treeb240d2540c486120e51ce5fb8386b2bb15cef100
parentd87e3ff90dd9a66ce96191247eff215e52c9eeef
x86_64/mm: switch to new APIs in setup_m2p_table

While doing so, avoid repetitive mapping of l2_ro_mpt by keeping it
across loops, and only unmap and map it when crossing 1G boundaries.

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/x86_64/mm.c