qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: Fix type for SIOCATMARK ioctl

The SIOCATMARK ioctl takes an argument which should be a
pointer to an integer where the kernel will write the result.
We were incorrectly declaring it as TYPE_NULL which would mean
it would always fail (with EFAULT) when it should succeed.
Correct the type.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

authored by

Peter Maydell and committed by
Riku Voipio
a57f1f8f 74642d09

+1 -1
+1 -1
linux-user/ioctls.h
··· 120 120 MK_PTR(MK_STRUCT(STRUCT_fiemap))) 121 121 #endif 122 122 123 - IOCTL(SIOCATMARK, 0, TYPE_NULL) 123 + IOCTL(SIOCATMARK, IOC_R, MK_PTR(TYPE_INT)) 124 124 IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT)) 125 125 IOCTL(SIOCGIFFLAGS, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_short_ifreq))) 126 126 IOCTL(SIOCSIFFLAGS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))