tools/libs/guest: fix max_pfn setting in map_p2m()
authorJuergen Gross <jgross@suse.com>
Fri, 4 Jun 2021 06:02:09 +0000 (08:02 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 4 Jun 2021 17:56:46 +0000 (18:56 +0100)
commit7bd8989ab77b6ade3b7a5f4b640a55248d1791a3
tree86c85c9120d694feab9faf91a81ec082fb9dc3d7
parent1a0f2fe2297d122a08fee2b26de5de995fdeca13
tools/libs/guest: fix max_pfn setting in map_p2m()

When setting the highest pfn used in the guest, don't subtract 1 from
the value read from the shared_info data. The value read already is
the correct pfn.

Fixes: 91e204d37f449 ("libxc: try to find last used pfn when migrating")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/guest/xg_sr_save_x86_pv.c