[PATCH v4] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-02 Thread chengang
From: Chen Gang Another DRM_IOCTL_* commands will be done later. Signed-off-by: Chen Gang --- configure | 10 ++ linux-user/ioctls.h| 5 +++ linux-user/syscall.c | 67 ++ linux-user/syscall_defs.h | 15 + linux-us

Re: [PATCH v4] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-02 Thread Laurent Vivier
Le 02/06/2020 à 14:00, cheng...@emindsoft.com.cn a écrit : > From: Chen Gang > > Another DRM_IOCTL_* commands will be done later. > > Signed-off-by: Chen Gang > --- > configure | 10 ++ > linux-user/ioctls.h| 5 +++ > linux-user/syscall.c | 67 ++

Re: [PATCH v4] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-02 Thread Chen Gang
On 2020/6/2 下午9:40, Laurent Vivier wrote: >> +static inline abi_long target_to_host_drmversion(struct drm_version >> *host_ver, >> +abi_long target_addr) >> +{ >> +struct target_drm_version *target_ver; >> + >> +if (!lock_user_struct(VERIFY_R