search for: pci_sriov_configure_simple

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

2018 May 31
1
[PATCH] virtio_pci: support enabling VFs
...> > > + return -EBUSY; >> > > > > + >> > > > > + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >> > > > > + return -EINVAL; >> > > > > + >> > > > > + sriov_configure = pci_sriov_configure_simple; >> > > > > + if (sriov_configure == NULL) >> > > > > + return -ENOENT; >> > > > >> > > > BTW what is all this trickery in aid of? >> > > >> > > When SR-IOV support is not compiled into the ker...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...>> + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) >>>> + return -EBUSY; >>>> + >>>> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >>>> + return -EINVAL; >>>> + >>>> + sriov_configure = pci_sriov_configure_simple; >>>> + if (sriov_configure == NULL) >>>> + return -ENOENT; >>> >>> BTW what is all this trickery in aid of? >> >> When SR-IOV support is not compiled into the kernel, >> pci_sriov_configure_simple is #defined as NULL. This allows it to c...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...>> + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) >>>> + return -EBUSY; >>>> + >>>> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >>>> + return -EINVAL; >>>> + >>>> + sriov_configure = pci_sriov_configure_simple; >>>> + if (sriov_configure == NULL) >>>> + return -ENOENT; >>> >>> BTW what is all this trickery in aid of? >> >> When SR-IOV support is not compiled into the kernel, >> pci_sriov_configure_simple is #defined as NULL. This allows it to c...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...ruct pci_dev *pci_dev, int num_vfs); >> + >> + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) >> + return -EBUSY; >> + >> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >> + return -EINVAL; >> + >> + sriov_configure = pci_sriov_configure_simple; >> + if (sriov_configure == NULL) >> + return -ENOENT; > > BTW what is all this trickery in aid of? When SR-IOV support is not compiled into the kernel, pci_sriov_configure_simple is #defined as NULL. This allows it to compile in that case, even though there is utterly no w...
2018 May 30
2
[PATCH] virtio_pci: support enabling VFs
...ruct pci_dev *pci_dev, int num_vfs); >> + >> + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) >> + return -EBUSY; >> + >> + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) >> + return -EINVAL; >> + >> + sriov_configure = pci_sriov_configure_simple; >> + if (sriov_configure == NULL) >> + return -ENOENT; > > BTW what is all this trickery in aid of? When SR-IOV support is not compiled into the kernel, pci_sriov_configure_simple is #defined as NULL. This allows it to compile in that case, even though there is utterly no w...
2018 May 31
0
[PATCH] virtio_pci: support enabling VFs
...vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > > > > > + return -EBUSY; > > > > > + > > > > > + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) > > > > > + return -EINVAL; > > > > > + > > > > > + sriov_configure = pci_sriov_configure_simple; > > > > > + if (sriov_configure == NULL) > > > > > + return -ENOENT; > > > > > > > > BTW what is all this trickery in aid of? > > > > > > When SR-IOV support is not compiled into the kernel, > > > pci_sriov_configu...
2018 May 30
8
[PATCH] virtio_pci: support enabling VFs
...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_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) + return -EINVAL; + + sriov_configure = pci_sriov_configure_simple; + if (sriov_configure == NULL) + return -ENOENT; + + return sriov_configure(pci_dev, num_vfs); +} + static struct pci_driver virtio_pci_driver = { .name = "virtio-pci", .id_table = virtio_pci_id_table, @@ -596,6 +615,7 @@ static struct pci_driver virtio_pci_driver = { #ifdef CONF...
2018 May 30
8
[PATCH] virtio_pci: support enabling VFs
...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_OK)) + return -EBUSY; + + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) + return -EINVAL; + + sriov_configure = pci_sriov_configure_simple; + if (sriov_configure == NULL) + return -ENOENT; + + return sriov_configure(pci_dev, num_vfs); +} + static struct pci_driver virtio_pci_driver = { .name = "virtio-pci", .id_table = virtio_pci_id_table, @@ -596,6 +615,7 @@ static struct pci_driver virtio_pci_driver = { #ifdef CONF...
2018 May 30
0
[PATCH] virtio_pci: support enabling VFs
...gt; + > > > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > > > + return -EBUSY; > > > + > > > + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) > > > + return -EINVAL; > > > + > > > + sriov_configure = pci_sriov_configure_simple; > > > + if (sriov_configure == NULL) > > > + return -ENOENT; > > > > BTW what is all this trickery in aid of? > > When SR-IOV support is not compiled into the kernel, > pci_sriov_configure_simple is #defined as NULL. This allows it to compile > in t...
2018 Jun 01
3
[PATCH v2] virtio_pci: support enabling VFs
...es the support for this feature bit in virtio driver. Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> Acked-by: Stefan Hajnoczi <stefanha at redhat.com> Acked-by: Michael S. Tsirkin <mst at redhat.com> --- v2: - Disable VFs when unbinding the driver (Alex, MST); - Don't use pci_sriov_configure_simple (Alex); drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ include/uapi/linux/virtio_config.h | 7 ++++++- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virt...
2018 Jun 01
3
[PATCH v2] virtio_pci: support enabling VFs
...es the support for this feature bit in virtio driver. Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> Acked-by: Stefan Hajnoczi <stefanha at redhat.com> Acked-by: Michael S. Tsirkin <mst at redhat.com> --- v2: - Disable VFs when unbinding the driver (Alex, MST); - Don't use pci_sriov_configure_simple (Alex); drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ include/uapi/linux/virtio_config.h | 7 ++++++- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virt...
2018 Jun 01
2
[PATCH v3] virtio_pci: support enabling VFs
...I/O Virtualization): https://github.com/oasis-tcs/virtio-spec/issues/11 This patch enables the support for this feature bit in virtio driver. Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> --- v3: - Drop the acks; v2: - Disable VFs when unbinding the driver (Alex, MST); - Don't use pci_sriov_configure_simple (Alex); drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ include/uapi/linux/virtio_config.h | 7 ++++++- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virt...
2018 Jun 01
2
[PATCH v3] virtio_pci: support enabling VFs
...I/O Virtualization): https://github.com/oasis-tcs/virtio-spec/issues/11 This patch enables the support for this feature bit in virtio driver. Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> --- v3: - Drop the acks; v2: - Disable VFs when unbinding the driver (Alex, MST); - Don't use pci_sriov_configure_simple (Alex); drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ include/uapi/linux/virtio_config.h | 7 ++++++- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virt...
2018 Jun 05
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...t; to have something like this? Sorry, currently I don't have anything like this.. Best regards, Tiwei Bie > > Thanks, > > > > v3: > > - Drop the acks; > > > > v2: > > - Disable VFs when unbinding the driver (Alex, MST); > > - Don't use pci_sriov_configure_simple (Alex); > > > > drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ > > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > > include/uapi/linux/virtio_config.h | 7 ++++++- > > 3 files changed, 50 insertions(+), 1 deletion(-) > > &g...
2018 Jun 06
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...ie > > > > > > > > Thanks, > > > > > > > > > > v3: > > > > - Drop the acks; > > > > > > > > v2: > > > > - Disable VFs when unbinding the driver (Alex, MST); > > > > - Don't use pci_sriov_configure_simple (Alex); > > > > > > > > drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ > > > > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > > > > include/uapi/linux/virtio_config.h | 7 ++++++- > > > > 3 files chan...
2018 Jun 06
2
[virtio-dev] Re: [PATCH v3] virtio_pci: support enabling VFs
...gt; > > > > > > > > > > v3: > > > > > > - Drop the acks; > > > > > > > > > > > > v2: > > > > > > - Disable VFs when unbinding the driver (Alex, MST); > > > > > > - Don't use pci_sriov_configure_simple (Alex); > > > > > > > > > > > > drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ > > > > > > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > > > > > > include/uapi/linux/virtio_config.h | 7 +...
2018 May 30
0
[PATCH] virtio_pci: support enabling VFs
...> + int (*sriov_configure)(struct pci_dev *pci_dev, int num_vfs); > + > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > + return -EBUSY; > + > + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) > + return -EINVAL; > + > + sriov_configure = pci_sriov_configure_simple; > + if (sriov_configure == NULL) > + return -ENOENT; BTW what is all this trickery in aid of? > + > + return sriov_configure(pci_dev, num_vfs); > +} > + > static struct pci_driver virtio_pci_driver = { > .name = "virtio-pci", > .id_table = virtio_pci_i...
2018 May 30
0
[virtio-dev] [PATCH] virtio_pci: support enabling VFs
...*pci_dev, int num_vfs); > + > + if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) > + return -EBUSY; > + > + if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) > + return -EINVAL; > + > + sriov_configure = pci_sriov_configure_simple; > + if (sriov_configure == NULL) > + return -ENOENT; > + > + return sriov_configure(pci_dev, num_vfs); > +} > + > static struct pci_driver virtio_pci_driver = { > .name = "virtio-pci", > .id_table = vir...
2018 Jun 01
0
[PATCH v2] virtio_pci: support enabling VFs
...t; Acked-by: Michael S. Tsirkin <mst at redhat.com> > --- Generally you aren't supposed to carry forward acks when you make major changes. In this case I'm fine with the patch, so never mind. > v2: > - Disable VFs when unbinding the driver (Alex, MST); > - Don't use pci_sriov_configure_simple (Alex); > > drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > include/uapi/linux/virtio_config.h | 7 ++++++- > 3 files changed, 50 insertions(+), 1 deletion(-) > > diff --git a/drivers/virtio...
2018 Jun 04
0
[PATCH v3] virtio_pci: support enabling VFs
...sriov for us. I wish there was a patch emulating this without vDPA for QEMU, would make it easy to test your patches. Do you happen to have something like this? Thanks, > v3: > - Drop the acks; > > v2: > - Disable VFs when unbinding the driver (Alex, MST); > - Don't use pci_sriov_configure_simple (Alex); > > drivers/virtio/virtio_pci_common.c | 30 ++++++++++++++++++++++++++++++ > drivers/virtio/virtio_pci_modern.c | 14 ++++++++++++++ > include/uapi/linux/virtio_config.h | 7 ++++++- > 3 files changed, 50 insertions(+), 1 deletion(-) > > diff --git a/drivers/virtio...