On 09.12.2022 22:42, Andrew Cooper wrote: > We can relocate Xen by reading out of the virtual mapping that we're executing > on, and write directly into the directmap. In fact, this removes one > dependency on Xen being "at 0" (the XEN_IMG_OFFSET passed as src) for > relocation to occur. > > This removes all the temporary pagetable handling under the covers of > move_memory(), and results in a forward copy rather than a chunked backwards > copy (caused by move_memory() always constructing src and dst in a way to > trigger memmove() to copy backwards). > > With the penultimate caller of move_memory() dropped, clean up the API. Drop > the keep boolean, folding in 0 from the final caller, and drop the return > address which has been unused since c/s 0b76ce20de85 ("x86/setup: don't > relocate the VGA hole.") in 2007. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>