Luke Shumaker aac362e46f linux-user: init_guest_space: Don't try to align if we'll reject it
If the ensure-alignment code gets triggered, then the
"if (host_start && real_start != current_start)" check will always trigger,
so save 2 syscalls and put that check first.

Note that we can't just switch to using MAP_FIXED for that check, because
then we couldn't differentiate between a failure because "there isn't
enough space" and "there isn't enough space *here*".

Signed-off-by: Luke Shumaker <lukeshu@parabola.nu>
Message-Id: <20171228180814.9749-9-lukeshu@lukeshu.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2018-03-13 15:02:20 +01:00
..
2018-03-07 08:30:28 +13:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2018-03-09 19:17:27 +01:00
2017-10-16 16:00:56 +03:00
2018-03-09 19:22:09 +01:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00