diff options
author | Luke Shumaker | 2017-12-28 19:08:08 +0100 |
---|---|---|
committer | Laurent Vivier | 2018-03-09 21:29:24 +0100 |
commit | 293f20600896d18c05880fb003f08d281b3156cb (patch) | |
tree | 629b6bfbf71614459b670e54d245ac740598f714 /scripts/qapi-gen.py | |
parent | linux-user: init_guest_space: Correctly handle guest_start in commpage initia... (diff) | |
download | qemu-293f20600896d18c05880fb003f08d281b3156cb.tar.gz qemu-293f20600896d18c05880fb003f08d281b3156cb.tar.xz qemu-293f20600896d18c05880fb003f08d281b3156cb.zip |
linux-user: init_guest_space: Clarify page alignment logic
There are 3 parts to this change:
- Add a comment showing the relative sizes and positions of the blocks of
memory
- introduce and use new aligned_{start,size} instead of adjusting
real_{start_size}
- When we clean up (on failure), munmap(real_start, real_size) instead of
munmap(aligned_start, aligned_size). It *shouldn't* make any
difference, but I will admit that this does mean we are making the
syscall with different values, so this isn't quite a no-op patch.
Signed-off-by: Luke Shumaker <lukeshu@parabola.nu>
Message-Id: <20171228180814.9749-6-lukeshu@lukeshu.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts/qapi-gen.py')
0 files changed, 0 insertions, 0 deletions