summary refs log tree commit diff stats
path: root/linux-user/user-internals.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-03-06 03:42:12 +0300
committerRichard Henderson <richard.henderson@linaro.org>2023-03-28 15:23:10 -0700
commitf6555e3f39ea118754c03e8b5d92fa3aa0dd6093 (patch)
tree09b1e50799ad300fe9e85a5d33df541ec10de95d /linux-user/user-internals.h
parentf7e2add5fd29ab067ab39c3d31a911ffcf1f7b17 (diff)
downloadfocaccia-qemu-f6555e3f39ea118754c03e8b5d92fa3aa0dd6093.tar.gz
focaccia-qemu-f6555e3f39ea118754c03e8b5d92fa3aa0dd6093.zip
accel/tcg: Pass last not end to page_collection_lock
Pass the address of the last byte to be changed, rather than
the first address past the last byte.  This avoids overflow
when the last page of the address space is involved.

Fixes a bug in the loop comparision where "<= end" would lock
one more page than required.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/user-internals.h')
0 files changed, 0 insertions, 0 deletions