Re: [PATCH] linux-user: syscall: ioctls: support DRM_IOCTL_I915_GETPARAM

2020-07-18 Thread Chen Gang
On 2020/7/14 上午2:46, Laurent Vivier wrote: >> +gparam->value = lock_user(VERIFY_WRITE, target_gparam->value, >> + sizeof(*gparam->value), 0); > > I don't think you should use directly the guest memory. > You should have something like that: > > int value; > >

Re: [PATCH] linux-user: syscall: ioctls: support DRM_IOCTL_I915_GETPARAM

2020-07-13 Thread Laurent Vivier
Le 12/07/2020 à 05:41, cheng...@emindsoft.com.cn a écrit : > From: Chen Gang > > It is for i915 drm command, and next, I shall send another i915 commands > implementations. > > Signed-off-by: Chen Gang > --- > linux-user/ioctls.h| 3 +++ > linux-user/syscall.c | 39 +

[PATCH] linux-user: syscall: ioctls: support DRM_IOCTL_I915_GETPARAM

2020-07-11 Thread chengang
From: Chen Gang It is for i915 drm command, and next, I shall send another i915 commands implementations. Signed-off-by: Chen Gang --- linux-user/ioctls.h| 3 +++ linux-user/syscall.c | 39 ++ linux-user/syscall_defs.h | 9 + linux-u