Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-05-30 Thread Anshuman Khandual
On 05/24/2018 12:51 PM, Ram Pai wrote: > On Wed, May 23, 2018 at 09:50:02PM +0300, Michael S. Tsirkin wrote: >> subj: s/virito/virtio/ >> > ..snip.. >>> machine_subsys_initcall_sync(pseries, tce_iommu_bus_notifier_init); >>> + >>> +bool platform_forces_virtio_dma(struct virtio_device *vdev) >>>

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

Re: [RFC V5 PATCH 8/8] vhost: event suppression for packed ring

2018-05-30 Thread Jason Wang
On 2018年05月30日 19:42, Wei Xu wrote: /* This actually signals the guest, using eventfd. */ void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) { @@ -2802,10 +2930,34 @@ static bool vhost_enable_notify_packed(struct vhost_dev *dev,

Re: [PATCH net-next v12 2/5] netvsc: refactor notifier/event handling code to use the failover framework

2018-05-30 Thread Samudrala, Sridhar
On 5/30/2018 7:06 PM, Stephen Hemminger wrote: On Thu, 24 May 2018 09:55:14 -0700 Sridhar Samudrala wrote: Use the registration/notification framework supported by the generic failover infrastructure. Signed-off-by: Sridhar Samudrala Why was this merged? It was never signed off by any

Re: [PATCH net-next v12 1/5] net: Introduce generic failover module

2018-05-30 Thread Samudrala, Sridhar
On 5/30/2018 7:52 PM, Stephen Hemminger wrote: On Fri, 25 May 2018 16:06:58 -0700 "Samudrala, Sridhar" wrote: On 5/25/2018 3:38 PM, Stephen Hemminger wrote: On Thu, 24 May 2018 09:55:13 -0700 Sridhar Samudrala wrote: diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h

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

2018-05-30 Thread Tiwei Bie
On Wed, May 30, 2018 at 07:09:37PM +0300, Michael S. Tsirkin wrote: > On Wed, May 30, 2018 at 04:03:37PM +, Rustad, Mark D wrote: > > On May 30, 2018, at 1:55 AM, Tiwei Bie wrote: > > > > > There is a new feature bit allocated in virtio spec to > > > support SR-IOV (Single Root I/O

Re: [PATCH net-next v12 1/5] net: Introduce generic failover module

2018-05-30 Thread Stephen Hemminger
On Fri, 25 May 2018 16:06:58 -0700 "Samudrala, Sridhar" wrote: > On 5/25/2018 3:38 PM, Stephen Hemminger wrote: > > On Thu, 24 May 2018 09:55:13 -0700 > > Sridhar Samudrala wrote: > > > >> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > >> index 03ed492c4e14..0f4ba52b641d

Re: [PATCH net-next v12 2/5] netvsc: refactor notifier/event handling code to use the failover framework

2018-05-30 Thread Stephen Hemminger
On Thu, 24 May 2018 09:55:14 -0700 Sridhar Samudrala wrote: > Use the registration/notification framework supported by the generic > failover infrastructure. > > Signed-off-by: Sridhar Samudrala Why was this merged? It was never signed off by any of the netvsc maintainers, and there were

Re: [PATCH net-next] virtio_net: fix error return code in virtnet_probe()

2018-05-30 Thread Jason Wang
On 2018年05月31日 10:05, Wei Yongjun wrote: Fix to return a negative error code from the failover create fail error handling case instead of 0, as done elsewhere in this function. Fixes: ba5e4426e80e ("virtio_net: Extend virtio to use VF datapath when available") Signed-off-by: Wei Yongjun ---

Re: [PATCH v2 00/13] drm: Eliminate plane->fb/crtc usage for atomic drivers

2018-05-30 Thread Sinclair Yeh
Thanks Ville. This series: Reviewed-by: Sinclair Yeh On Fri, May 25, 2018 at 09:50:32PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Here are again the last (?) bits of eliminating the plane->fb/crtc > usage for atomic drivers. I've pushed everything else (thanks to > everyone who

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

2018-05-30 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 04:26:30PM +, Duyck, Alexander H wrote: > On Wed, 2018-05-30 at 19:22 +0300, Michael S. Tsirkin wrote: > > On Wed, May 30, 2018 at 09:10:57AM -0700, Alexander Duyck wrote: > > > On Wed, May 30, 2018 at 1:55 AM, Tiwei Bie wrote: > > > > There is a new feature bit

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

Re: [PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Duyck, Alexander H
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 = pci_get_drvdata(pci_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 = _dev->vdev; + int (*sriov_configure)(struct

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

2018-05-30 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 09:10:57AM -0700, Alexander Duyck wrote: > On Wed, May 30, 2018 at 1:55 AM, 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 > > > >

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

2018-05-30 Thread Alexander Duyck
On Wed, May 30, 2018 at 1:55 AM, 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. > >

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

2018-05-30 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 04:03:37PM +, Rustad, Mark D wrote: > On May 30, 2018, at 1:55 AM, 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 > > > >

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

2018-05-30 Thread Rustad, Mark D
On May 30, 2018, at 1:55 AM, 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. Signed-off-by: Tiwei

Re: [PATCH] virtio_ring: switch to dma_XX barriers for rpmsg

2018-05-30 Thread Michael S. Tsirkin
On Thu, Apr 19, 2018 at 07:48:24PM +0200, Paolo Bonzini wrote: > On 19/04/2018 19:46, Michael S. Tsirkin wrote: > >> This should be okay, but I wonder if there should be a virtio_wmb(...) > >> or an "if (weak_barriers) wmb()" before the "writel" in vm_notify > >> (drivers/virtio/virtio_mmio.c). >

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

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

2018-05-30 Thread Stefan Hajnoczi
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

Re: [RFC V5 PATCH 8/8] vhost: event suppression for packed ring

2018-05-30 Thread Wei Xu
On Tue, May 29, 2018 at 10:10:30AM +0800, Jason Wang wrote: > This patch introduces basic support for event suppression aka driver > and device area. > > Signed-off-by: Jason Wang > --- > drivers/vhost/vhost.c| 191 > --- > drivers/vhost/vhost.h

[PATCH] virtio_pci: support enabling VFs

2018-05-30 Thread Tiwei Bie
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. Signed-off-by: Tiwei Bie --- This patch depends on below proposal: