linux-user: Fix sub-host-page mmap
commitf0a362c476d5e866d91bdca8cad108d7f8e3897c
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Jan 2024 01:57:53 +0000 (2 12:57 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:36 +0000 (29 11:35 -1000)
tree7fad015671cd64838103fd3d76acbe344f46bbe8
parente8cec51be073bb1abac3850a4c1a90f96a416af2
linux-user: Fix sub-host-page mmap

We cannot skip over the_end1 to the_end, because we fail to
record the validity of the guest page with the interval tree.
Remove "the_end" and rename "the_end1" to "the_end".

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20240102015808.132373-19-richard.henderson@linaro.org>
linux-user/mmap.c