revert "tools/libs/guest: fix max_pfn setting in map_p2m()"
authorJuergen Gross <jgross@suse.com>
Mon, 14 Jun 2021 12:39:52 +0000 (14:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Jun 2021 12:39:52 +0000 (14:39 +0200)
commit60d82f4bb0a22eb8765d33f87207afab25bc2396
tree6329b3e487817fd633dfabe4c6c79fbdf151beb0
parent4f1858763b7b1aeb79fa7c818eca98c96943aa69
revert "tools/libs/guest: fix max_pfn setting in map_p2m()"

The reasoning for commit 7bd8989ab77b6a ("tools/libs/guest: fix max_pfn
setting in map_p2m()") was wrong.

The max_pfn field in shared_info is misnamed, it has the semantics of
num_pfns, which is hidden at least partially in Linux, as the kernel is
(wrongly) treating it like the highest used pfn in some places.

So revert above commit.

Fixes: 7bd8989ab77b6a ("tools/libs/guest: fix max_pfn setting in map_p2m()")
Signed-off-by: Juergen Gross <jgross@suse.com>
tools/libs/guest/xg_sr_save_x86_pv.c