Re: [Intel-gfx] [PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-10-31 Thread Zhu, Lingshan
for it? A more or less useless sample driver doesn't really qualify for our normal kernel requirements that infrastructure should have a real user. Hello Christoph, I am working on a real hardware driver for it, it's called IFC, I have posted RFC V1 and will post RFC V2 soon. Thanks, BR Zhu Lingshan

Re: [Intel-gfx] [PATCH V5 4/6] mdev: introduce virtio device and its device ops

2019-10-30 Thread Zhu Lingshan
On 10/29/2019 6:42 PM, Jason Wang wrote: On 2019/10/29 下午3:42, Zhu Lingshan wrote: +    void (*set_status)(struct mdev_device *mdev, u8 status); Hi Jason Is it possible to make set_status() return an u8 or bool, because this may fail in real hardware. Without a returned code, I am not sure

Re: [Intel-gfx] [PATCH V5 4/6] mdev: introduce virtio device and its device ops

2019-10-29 Thread Zhu Lingshan
void (*set_status)(struct mdev_device *mdev, u8 status); Hi Jason Is it possible to make set_status() return an u8 or bool, because this may fail in real hardware. Without a returned code, I am not sure  whether it is a good idea to set the status | NEED_RESET when fail. Thanks, BR Zhu Ling