[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-31 Thread Tiwei Bie
On Thu, May 31, 2018 at 07:27:43AM -0700, Alexander Duyck wrote: > On Wed, May 30, 2018 at 8:20 PM, Tiwei Bie wrote: > > On Thu, May 31, 2018 at 01:11:37AM +0800, Rustad, Mark D wrote: > >> On May 30, 2018, at 9:54 AM, Duyck, Alexander H > >> wrote: > >> > >> > On Wed, 2018-05-30 at 09:44 -0700,

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-31 Thread Alexander Duyck
On Wed, May 30, 2018 at 8:20 PM, Tiwei Bie wrote: > On Thu, May 31, 2018 at 01:11:37AM +0800, Rustad, Mark D wrote: >> On May 30, 2018, at 9:54 AM, Duyck, Alexander H >> wrote: >> >> > On Wed, 2018-05-30 at 09:44 -0700, Rustad, Mark D wrote: >> > > On May 30, 2018, at 9:22 AM, Michael S. Tsirkin

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Tiwei Bie
On Thu, May 31, 2018 at 01:11:37AM +0800, Rustad, Mark D wrote: > On May 30, 2018, at 9:54 AM, Duyck, Alexander H > wrote: > > > On Wed, 2018-05-30 at 09:44 -0700, Rustad, Mark D wrote: > > > On May 30, 2018, at 9:22 AM, Michael S. Tsirkin wrote: > > > > > > > > +static int virtio_pci_sriov_con

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Rustad, Mark D
On May 30, 2018, at 9:54 AM, Duyck, Alexander H wrote: On Wed, 2018-05-30 at 09:44 -0700, Rustad, Mark D wrote: On May 30, 2018, at 9:22 AM, Michael S. Tsirkin wrote: +static int virtio_pci_sriov_configure(struct pci_dev *pci_dev, int num_vfs) +{ + struct virtio_pci_device *vp_dev =

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Rustad, Mark D
On May 30, 2018, at 9:22 AM, Michael S. Tsirkin wrote: +static int virtio_pci_sriov_configure(struct pci_dev *pci_dev, int num_vfs) +{ + struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); + struct virtio_device *vdev = &vp_dev->vdev; + int (*sriov_configure)(struct

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 04:55:21PM +0800, Tiwei Bie wrote: > There is a new feature bit allocated in virtio spec to > support SR-IOV (Single Root I/O Virtualization): > > https://github.com/oasis-tcs/virtio-spec/issues/11 > > This patch enables the support for this feature bit in > virtio driver.

[virtio-dev] Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 04:55:21PM +0800, Tiwei Bie wrote: > There is a new feature bit allocated in virtio spec to > support SR-IOV (Single Root I/O Virtualization): > > https://github.com/oasis-tcs/virtio-spec/issues/11 > > This patch enables the support for this feature bit in > virtio driver.