On 28 December 2017 at 18:08, Luke Shumaker <luke...@lukeshu.com> wrote: > From: Luke Shumaker <luke...@parabola.nu> > > 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 <luke...@parabola.nu> > ---
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM