]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: fix preadv/pwritev offsets
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 5 Apr 2018 00:30:41 +0000 (17:30 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 10 Apr 2018 01:57:49 +0000 (18:57 -0700)
commit9ac225171c9d6b2a1cba35a94ae7eeaa0106cf7d
treee12d19b6f5c744c80813298ba5154fae4c83fe5f
parent9abfc88af3ffd3b33c7fab4471da86462ee71d95
linux-user: fix preadv/pwritev offsets

preadv/pwritev accept low and high parts of file offset in two separate
parameters. When host bitness doesn't match guest bitness these parts
must be appropriately recombined.
Introduce target_to_host_low_high that does this recombination and use
it in preadv/pwritev syscalls.

This fixes glibc testsuite test misc/tst-preadvwritev64.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
linux-user/syscall.c