]> www.infradead.org Git - users/dwmw2/linux.git/commit
xen: add capability to remap non-RAM pages to different PFNs
authorJuergen Gross <jgross@suse.com>
Wed, 14 Aug 2024 14:47:25 +0000 (16:47 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 10 Sep 2024 13:26:34 +0000 (15:26 +0200)
commitd05208cf7f05420ad10cc7f9550f91d485523659
tree6f141fa4f2bb23c18b190d90463b6d499f353204
parent43dc2a0f479b9cd30f6674986d7a40517e999d31
xen: add capability to remap non-RAM pages to different PFNs

When running as a Xen PV dom0 it can happen that the kernel is being
loaded to a guest physical address conflicting with the host memory
map.

In order to be able to resolve this conflict, add the capability to
remap non-RAM areas to different guest PFNs. A function to use this
remapping information for other purposes than doing the remap will be
added when needed.

As the number of conflicts should be rather low (currently only
machines with max. 1 conflict are known), save the remap data in a
small statically allocated array.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/p2m.c
arch/x86/xen/xen-ops.h