search for: virtio_pci_sriov_configur

Displaying 20 results from an estimated 25 matches for "virtio_pci_sriov_configur".

2018 May 30
8
[PATCH] virtio_pci: support enabling VFs
...s/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index 48d4d1cf1cb6..023da80a7a3e 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -588,6 +588,25 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 pci_dev *pci_dev, int num_vfs); + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_O...
2018 May 30
8
[PATCH] virtio_pci: support enabling VFs
...s/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index 48d4d1cf1cb6..023da80a7a3e 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -588,6 +588,25 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 pci_dev *pci_dev, int num_vfs); + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_O...
2018 Jun 01
3
[PATCH v2] virtio_pci: support enabling VFs
...vdata(pci_dev); struct device *dev = get_device(&vp_dev->vdev.dev); + pci_disable_sriov(pci_dev); + unregister_virtio_device(&vp_dev->vdev); if (vp_dev->ioaddr) @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 ret; + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev...
2018 Jun 01
3
[PATCH v2] virtio_pci: support enabling VFs
...vdata(pci_dev); struct device *dev = get_device(&vp_dev->vdev.dev); + pci_disable_sriov(pci_dev); + unregister_virtio_device(&vp_dev->vdev); if (vp_dev->ioaddr) @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 ret; + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev...
2018 Jun 01
2
[PATCH v3] virtio_pci: support enabling VFs
...vdata(pci_dev); struct device *dev = get_device(&vp_dev->vdev.dev); + pci_disable_sriov(pci_dev); + unregister_virtio_device(&vp_dev->vdev); if (vp_dev->ioaddr) @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 ret; + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev...
2018 Jun 01
2
[PATCH v3] virtio_pci: support enabling VFs
...vdata(pci_dev); struct device *dev = get_device(&vp_dev->vdev.dev); + pci_disable_sriov(pci_dev); + unregister_virtio_device(&vp_dev->vdev); if (vp_dev->ioaddr) @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) put_device(dev); } +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 ret; + + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
On May 30, 2018, at 9:22 AM, Michael S. Tsirkin <mst at redhat.com> 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 pci_dev *pci_dev, int num_vfs); >> + >> + if (!(vd...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
On May 30, 2018, at 9:22 AM, Michael S. Tsirkin <mst at redhat.com> 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 pci_dev *pci_dev, int num_vfs); >> + >> + if (!(vd...
2018 Jun 05
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...le_sriov(pci_dev); > > + > > unregister_virtio_device(&vp_dev->vdev); > > > > if (vp_dev->ioaddr) > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > put_device(dev); > > } > > > > +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 ret; > > + > > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_D...
2018 Jun 06
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...mp;vp_dev->vdev); > > > > > > > > if (vp_dev->ioaddr) > > > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > > > put_device(dev); > > > > } > > > > > > > > +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 ret; > > > > + > > > > + if (!(...
2018 Jun 06
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...t; > > if (vp_dev->ioaddr) > > > > > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > > > > > put_device(dev); > > > > > > } > > > > > > > > > > > > +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 ret; > >...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
On May 30, 2018, at 9:54 AM, Duyck, Alexander H <alexander.h.duyck at intel.com> 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 <mst at redhat.com> 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 pci_dev *pci_dev, int nu...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
On May 30, 2018, at 9:54 AM, Duyck, Alexander H <alexander.h.duyck at intel.com> 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 <mst at redhat.com> 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 pci_dev *pci_dev, int nu...
2018 May 30
0
[PATCH] virtio_pci: support enabling VFs
...irtio/virtio_pci_common.c > index 48d4d1cf1cb6..023da80a7a3e 100644 > --- a/drivers/virtio/virtio_pci_common.c > +++ b/drivers/virtio/virtio_pci_common.c > @@ -588,6 +588,25 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > put_device(dev); > } > > +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 pci_dev *pci_dev, int num_vfs); > + > + if (!(vdev->config->get_status(vdev)...
2018 May 30
0
[virtio-dev] [PATCH] virtio_pci: support enabling VFs
...o/virtio_pci_common.c > index 48d4d1cf1cb6..023da80a7a3e 100644 > --- a/drivers/virtio/virtio_pci_common.c > +++ b/drivers/virtio/virtio_pci_common.c > @@ -588,6 +588,25 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > put_device(dev); > } > > +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 pci_dev *pci_dev, int num_vfs); > + > + if (!(vdev->conf...
2018 Jun 01
0
[PATCH v2] virtio_pci: support enabling VFs
...vp_dev->vdev.dev); > > + pci_disable_sriov(pci_dev); > + > unregister_virtio_device(&vp_dev->vdev); > > if (vp_dev->ioaddr) > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > put_device(dev); > } > > +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 ret; > + > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > + return -EBU...
2018 Jun 04
0
[PATCH v3] virtio_pci: support enabling VFs
...vp_dev->vdev.dev); > > + pci_disable_sriov(pci_dev); > + > unregister_virtio_device(&vp_dev->vdev); > > if (vp_dev->ioaddr) > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > put_device(dev); > } > > +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 ret; > + > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > + return -EBU...
2018 Jun 05
0
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...> unregister_virtio_device(&vp_dev->vdev); > > > > > > if (vp_dev->ioaddr) > > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > > put_device(dev); > > > } > > > > > > +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 ret; > > > + > > > + if (!(vdev->config->get_status...
2018 Jun 06
0
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...> > > > > > > if (vp_dev->ioaddr) > > > > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > > > > put_device(dev); > > > > > } > > > > > > > > > > +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 ret; > > > > > + &gt...
2018 Jun 06
0
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...->ioaddr) > > > > > > > @@ -588,6 +590,33 @@ static void virtio_pci_remove(struct pci_dev *pci_dev) > > > > > > > put_device(dev); > > > > > > > } > > > > > > > > > > > > > > +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; > > > > > > > +...