Re: [Qemu-devel] [PATCH] linux-user: fix preadv/pwritev offsets

2018-04-04 Thread Richard Henderson
On 04/05/2018 11:33 AM, Max Filippov wrote: > +static void target_low_high_to_host_low_high(abi_ulong tlow, > + abi_ulong thigh, > + unsigned long *hlow, > + unsigned

[Qemu-devel] [PATCH] linux-user: fix preadv/pwritev offsets

2018-04-04 Thread Max Filippov
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_low_high_to_host_low_high that does this recombination and use it in preadv/pwritev syscalls. This fixes