Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Jike Song
On 09/21/2016 12:51 PM, Alex Williamson wrote: > On Wed, 21 Sep 2016 11:19:17 +0800 > Jike Song wrote: > >> On 09/21/2016 12:24 AM, Alex Williamson wrote: >>> On Tue, 20 Sep 2016 10:50:47 +0800 >>> Jike Song wrote: >> >> /* trim the quotations */ >>

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Alex Williamson
On Wed, 21 Sep 2016 11:19:17 +0800 Jike Song wrote: > On 09/21/2016 12:24 AM, Alex Williamson wrote: > > On Tue, 20 Sep 2016 10:50:47 +0800 > > Jike Song wrote: > > /* trim the quotations */ > > >> Even performing a lightweight sanity check, would

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Jike Song
On 09/21/2016 12:24 AM, Alex Williamson wrote: > On Tue, 20 Sep 2016 10:50:47 +0800 > Jike Song wrote: /* trim the quotations */ >> Even performing a lightweight sanity check, would require vfio-mdev >> to be able to decode the ppos into a particular region, that means >>

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Alex Williamson
On Tue, 20 Sep 2016 10:50:47 +0800 Jike Song wrote: > On 09/20/2016 04:03 AM, Alex Williamson wrote: > > On Tue, 20 Sep 2016 00:43:15 +0530 > > Kirti Wankhede wrote: > > > >> On 9/20/2016 12:06 AM, Alex Williamson wrote: > >>> On Mon, 19 Sep 2016

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Jike Song
On 08/25/2016 11:53 AM, Kirti Wankhede wrote: /* {snip} */ To show another possible implementation of vfio-mdev, which provides the thinnest framework and let the vendor physical drivers do whatever they want to. Again, it is diff-ed against Kirti's version 7, for demonstration only. -- Thanks,

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-20 Thread Jike Song
On 09/20/2016 01:48 PM, Dong Jia Shi wrote: > * Jike Song [2016-09-13 10:35:11 +0800]: > >> On 09/08/2016 10:45 AM, Jike Song wrote: >>> On 08/25/2016 05:22 PM, Dong Jia wrote: On Thu, 25 Aug 2016 09:23:53 +0530 Kirti Wankhede wrote:

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Dong Jia Shi
* Jike Song [2016-09-13 10:35:11 +0800]: > On 09/08/2016 10:45 AM, Jike Song wrote: > > On 08/25/2016 05:22 PM, Dong Jia wrote: > >> On Thu, 25 Aug 2016 09:23:53 +0530 > >> Kirti Wankhede wrote: > >> > >> [...] > >> > >> Dear Kirti, > >> > >> I just

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Jike Song
On 09/20/2016 04:03 AM, Alex Williamson wrote: > On Tue, 20 Sep 2016 00:43:15 +0530 > Kirti Wankhede wrote: > >> On 9/20/2016 12:06 AM, Alex Williamson wrote: >>> On Mon, 19 Sep 2016 23:52:36 +0530 >>> Kirti Wankhede wrote: >>> On 8/26/2016

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Alex Williamson
On Tue, 20 Sep 2016 00:43:15 +0530 Kirti Wankhede wrote: > On 9/20/2016 12:06 AM, Alex Williamson wrote: > > On Mon, 19 Sep 2016 23:52:36 +0530 > > Kirti Wankhede wrote: > > > >> On 8/26/2016 7:43 PM, Kirti Wankhede wrote: > >>> * PGP Signed:

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Kirti Wankhede
On 9/20/2016 12:06 AM, Alex Williamson wrote: > On Mon, 19 Sep 2016 23:52:36 +0530 > Kirti Wankhede wrote: > >> On 8/26/2016 7:43 PM, Kirti Wankhede wrote: >>> * PGP Signed: 08/26/2016 at 07:15:44 AM, Decrypted >>> On 8/25/2016 2:52 PM, Dong Jia wrote: On Thu, 25

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Alex Williamson
On Mon, 19 Sep 2016 23:52:36 +0530 Kirti Wankhede wrote: > On 8/26/2016 7:43 PM, Kirti Wankhede wrote: > > * PGP Signed: 08/26/2016 at 07:15:44 AM, Decrypted > > On 8/25/2016 2:52 PM, Dong Jia wrote: > >> On Thu, 25 Aug 2016 09:23:53 +0530 > > >>> + > >>> +static

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Kirti Wankhede
On 8/26/2016 7:43 PM, Kirti Wankhede wrote: > * PGP Signed: 08/26/2016 at 07:15:44 AM, Decrypted > On 8/25/2016 2:52 PM, Dong Jia wrote: >> On Thu, 25 Aug 2016 09:23:53 +0530 >>> + >>> +static ssize_t vfio_mdev_read(void *device_data, char __user *buf, >>> + size_t

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-12 Thread Jike Song
On 09/08/2016 10:45 AM, Jike Song wrote: > On 08/25/2016 05:22 PM, Dong Jia wrote: >> On Thu, 25 Aug 2016 09:23:53 +0530 >> Kirti Wankhede wrote: >> >> [...] >> >> Dear Kirti, >> >> I just rebased my vfio-ccw patches to this series. >> With a little fix, which was pointed it

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-07 Thread Jike Song
On 08/25/2016 05:22 PM, Dong Jia wrote: > On Thu, 25 Aug 2016 09:23:53 +0530 > Kirti Wankhede wrote: > > [...] > > Dear Kirti, > > I just rebased my vfio-ccw patches to this series. > With a little fix, which was pointed it out in my reply to the #3 > patch, it works

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-07 Thread Jike Song
On 08/26/2016 10:13 PM, Kirti Wankhede wrote: > > > On 8/25/2016 2:52 PM, Dong Jia wrote: >> On Thu, 25 Aug 2016 09:23:53 +0530 >> Kirti Wankhede wrote: >> >> [...] >> >> Dear Kirti, >> >> I just rebased my vfio-ccw patches to this series. >> With a little fix, which was

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-08-26 Thread Kirti Wankhede
On 8/25/2016 2:52 PM, Dong Jia wrote: > On Thu, 25 Aug 2016 09:23:53 +0530 > Kirti Wankhede wrote: > > [...] > > Dear Kirti, > > I just rebased my vfio-ccw patches to this series. > With a little fix, which was pointed it out in my reply to the #3 > patch, it works

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-08-25 Thread Dong Jia
On Thu, 25 Aug 2016 09:23:53 +0530 Kirti Wankhede wrote: [...] Dear Kirti, I just rebased my vfio-ccw patches to this series. With a little fix, which was pointed it out in my reply to the #3 patch, it works fine. > +static long vfio_mdev_unlocked_ioctl(void

[Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-08-24 Thread Kirti Wankhede
VFIO MDEV driver registers with MDEV core driver. MDEV core driver creates mediated device and calls probe routine of MPCI VFIO driver. This driver adds mediated device to VFIO core module. Main aim of this module is to manage all VFIO APIs for each mediated device. Those are: - get VFIO device