[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device
From: |
Alex Williamson |
Subject: |
Re: [Qemu-devel] [RFC PATCH v4 2/3] VFIO driver for mediated PCI device |
Date: |
Fri, 27 May 2016 09:13:18 -0600 |
On Fri, 27 May 2016 10:03:31 +0000
"Tian, Kevin" <address@hidden> 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) && phy_dev->ops->get_region_info) {
> > >> + mutex_lock(&mdevice->ops_lock);
> > >> + ret = phy_dev->ops->get_region_info(mdevice, index,
> > >> + vfio_region_info);
> > >> + mutex_unlock(&mdevice->ops_lock);
> > >> + }
> > >> + return ret;
> > >> +}
> > >> +
> > >> +static int mdev_read_base(struct vfio_mdevice *vdev)
> > >
> > > similar as earlier comment - vdev or mdev?
> > >
> >
> > Here vdev is of type 'vfio_mdevice', that's why vdev, mdev doesn't suit
> > here. Changing it to 'vmdev' in next patch set.
> >
>
> 'vmdev' looks more confusing... :-)
>
> Alex, can you give your thought here?
I don't see any problem with vmdev personally, are you unhappy with it
because it includes 'vm'? It seems like it has a valid rationale, so
long as it's used consistently, I'm happy. Thanks,
Alex
[Qemu-devel] [RFC PATCH v4 1/3] Mediated device Core driver, Kirti Wankhede, 2016/05/24
Re: [Qemu-devel] [RFC PATCH v4 1/3] Mediated device Core driver, Alex Williamson, 2016/05/25
[Qemu-devel] [RFC PATCH v4 3/3] VFIO Type1 IOMMU: Add support for mediated devices, Kirti Wankhede, 2016/05/24
Re: [Qemu-devel] [RFC PATCH v4 0/3] Add Mediated device support[was: Add vGPU support], Tian, Kevin, 2016/05/25