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

2016-06-30 Thread Kirti Wankhede
On 6/29/2016 8:24 AM, Alex Williamson wrote: > On Wed, 29 Jun 2016 00:15:23 +0530 > Kirti Wankhede wrote: > >> On 6/25/2016 1:15 AM, Alex Williamson wrote: >>> On Sat, 25 Jun 2016 00:04:27 +0530 >>> Kirti Wankhede wrote: >>> >> >> + >> +static int mdev_get_irq_count(struct vfio_mdev

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

2016-06-29 Thread Xiao Guangrong
On 06/21/2016 12:31 AM, Kirti Wankhede wrote: +static int mdev_dev_mmio_fault(struct vm_area_struct *vma, struct vm_fault *vmf) +{ + int ret; + struct vfio_mdev *vmdev = vma->vm_private_data; + struct mdev_device *mdev; + struct parent_device *parent; + u64 virta

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

2016-06-28 Thread Alex Williamson
On Wed, 29 Jun 2016 00:15:23 +0530 Kirti Wankhede wrote: > On 6/25/2016 1:15 AM, Alex Williamson wrote: > > On Sat, 25 Jun 2016 00:04:27 +0530 > > Kirti Wankhede wrote: > > > > + > +static int mdev_get_irq_count(struct vfio_mdev *vmdev, int irq_type) > +{ > +/* Do

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

2016-06-28 Thread Kirti Wankhede
On 6/25/2016 1:15 AM, Alex Williamson wrote: > On Sat, 25 Jun 2016 00:04:27 +0530 > Kirti Wankhede wrote: > + +static int mdev_get_irq_count(struct vfio_mdev *vmdev, int irq_type) +{ + /* Don't support MSIX for now */ + if (irq_type == VFIO_PCI_MSIX_IRQ_INDEX) +

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

2016-06-24 Thread Alex Williamson
On Sat, 25 Jun 2016 00:04:27 +0530 Kirti Wankhede wrote: > Thanks Alex. > > > On 6/22/2016 4:18 AM, Alex Williamson wrote: > > On Mon, 20 Jun 2016 22:01:47 +0530 > > Kirti Wankhede wrote: > > > >> + > >> +static int get_mdev_region_info(struct mdev_device *mdev, > >> +

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

2016-06-24 Thread Kirti Wankhede
Thanks Alex. On 6/22/2016 4:18 AM, Alex Williamson wrote: > On Mon, 20 Jun 2016 22:01:47 +0530 > Kirti Wankhede wrote: > >> + >> +static int get_mdev_region_info(struct mdev_device *mdev, >> +struct pci_region_info *vfio_region_info, >> +i

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

2016-06-21 Thread Alex Williamson
On Mon, 20 Jun 2016 22:01:47 +0530 Kirti Wankhede wrote: > 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

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

2016-06-20 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