Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device

2016-05-27 Thread Alex Williamson
On Fri, 27 May 2016 10:03:31 + "Tian, Kevin" wrote: > > From: Kirti Wankhede > > Sent: Wednesday, May 25, 2016 9:05 PM > > > > > > >> +{ > > >> +int ret = -EINVAL; > > >> +struct phy_device *phy_dev = mdevice->phy_dev; > > >> + > > >> +if (dev_is_pci(phy_dev->dev)

Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device

2016-05-27 Thread Tian, Kevin
> From: Kirti Wankhede > Sent: Wednesday, May 25, 2016 9:05 PM > > > >> +{ > >> + int ret = -EINVAL; > >> + struct phy_device *phy_dev = mdevice->phy_dev; > >> + > >> + if (dev_is_pci(phy_dev->dev) && phy_dev->ops->get_region_info) { > >> + mutex_lock(&mdevice->ops_lock); > >> +

Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device

2016-05-25 Thread Kirti Wankhede
On 5/25/2016 1:45 PM, Tian, Kevin wrote: >> From: Kirti Wankhede [mailto:kwankh...@nvidia.com] >> Sent: Wednesday, May 25, 2016 3:58 AM >> >> VFIO driver registers with MDEV core driver. MDEV core driver creates >> mediated device and calls probe routine of MPCI VFIO driver. This MPCI >> VFIO dri

Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device

2016-05-25 Thread Tian, Kevin
> From: Kirti Wankhede [mailto:kwankh...@nvidia.com] > Sent: Wednesday, May 25, 2016 3:58 AM > > VFIO driver registers with MDEV core driver. MDEV core driver creates > mediated device and calls probe routine of MPCI VFIO driver. This MPCI > VFIO driver adds mediated device to VFIO core module. >

[Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device

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