x86: drop unnecessary page table walking in compat r/o M2P handling
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Apr 2020 08:28:27 +0000 (10:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Apr 2020 08:28:27 +0000 (10:28 +0200)
commit1df23a5ba85ca0266ebba25c7663465a8923d584
treeec78702406334a5a7ba703c4b3d2f6909a0d1121
parent8065e1b41688592778de76c731c62f34e71f3129
x86: drop unnecessary page table walking in compat r/o M2P handling

We have a global variable where the necessary L2 table is recorded; no
need to inspect L4 and L3 tables (and this way a few less places will
eventually need adjustment when we want to support 5-level page tables).
Also avoid setting up the L3 entry, as the address range never gets used
anyway (it'll be dropped altogether in a subsequent patch).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Hongyan Xia <hongyxia@amazon.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/x86_64/mm.c