On 7/12/19 3:55 PM, Arnd Bergmann wrote: > glibc will have to create a definition that matches the kernel, which uses > > struct __kernel_timespec { > __s64 tv_sec; > __s64 tv_nsec; > }; > > As posix requires tv_nsec to be 'long', you need padding between > tv_sec and tv_nsec to have a libc definition matching the kernel's > binary layout.
Yes, but that's glibc's lookout. All qemu cares about emulating is the kernel interface. So I think Laurent is right here, in that two reads handle the above structure just fine. r~