]> xenbits.xensource.com Git - xen.git/commit
x86/boot: Fix zap_low_mappings() to map less of the trampoline
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 Dec 2024 16:52:39 +0000 (16:52 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Mar 2025 16:08:34 +0000 (16:08 +0000)
commit516e89a43bc67d86b83f539c97b7ffc6d6aa19d6
treeeeabed4f49249d5c3d3ef28331f6f2a0fb900b14
parent90ebf9905b2c3d3acb6d3539da09fb4a77dfdfb0
x86/boot: Fix zap_low_mappings() to map less of the trampoline

Regular data access into the trampoline is via the directmap.

As now discussed quite extensively in asm/trampoline.h, the trampoline is
arranged so that only the AP and S3 paths need an identity mapping, and that
they fit within a single page.

Right now, PFN_UP(trampoline_end - trampoline_start) is 2, causing more than
expected of the trampoline to be mapped.  Cut it down just the single page it
ought to be.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/mm.c