xenpaging: munmap all pages after page-in
authorOlaf Hering <olaf@aepfle.de>
Mon, 14 Nov 2011 17:49:14 +0000 (17:49 +0000)
committerOlaf Hering <olaf@aepfle.de>
Mon, 14 Nov 2011 17:49:14 +0000 (17:49 +0000)
commitd2cb52cc6c4795d31ada3233efa465e96f009f11
tree2f26fa4d9ba037e297e5d9037e6b157de7816767
parentbfbaed092edf2c8389c8c8504cd23954b7734945
xenpaging: munmap all pages after page-in

Do munmap() on all mapped pages, not just the first one.  Without this
change the gfns backing the remaining pages can not be paged out again
because the page count does not go down to 1. This change was missing
from changeset 23827:d1d6abc1db20.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/pagein.c