[PATCH v3] virtio_pci: support enabling VFs

2018-05-31 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 --- v3: - Drop the acks; v2: - Disable VFs

Re: [PATCH v2] virtio_pci: support enabling VFs

2018-05-31 Thread Tiwei Bie
On Fri, Jun 01, 2018 at 06:47:01AM +0300, Michael S. Tsirkin wrote: > On Fri, Jun 01, 2018 at 10:09:21AM +0800, Tiwei Bie wrote: > > There is a new feature bit allocated in virtio spec to > > support SR-IOV (Single Root I/O Virtualization): > > > >

Re: [PATCH v2] virtio_pci: support enabling VFs

2018-05-31 Thread Michael S. Tsirkin
On Fri, Jun 01, 2018 at 10:09:21AM +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: [PATCH v2] virtio_pci: support enabling VFs

2018-05-31 Thread Tiwei Bie
On Fri, Jun 01, 2018 at 10:09:21AM +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: [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,

[PATCH v2] virtio_pci: support enabling VFs

2018-05-31 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 Acked-by: Stefan Hajnoczi Acked-by: Michael

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

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 10:55:02AM +0800, Tiwei Bie wrote: > 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

RE: [PATCH v4] virtio_blk: add DISCARD and WRIET ZEROES commands support

2018-05-31 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > Sent: Thursday, May 31, 2018 6:31 PM > To: Liu, Changpeng > Cc: virtualization@lists.linux-foundation.org; cav...@redhat.com; > jasow...@redhat.com; pbonz...@redhat.com; Wang, Wei W > > Subject: Re: [PATCH v4]

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

2018-05-31 Thread Siwei Liu
On Thu, May 31, 2018 at 11:35 AM, Michael S. Tsirkin wrote: > On Wed, May 30, 2018 at 10:06:35PM -0400, 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

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

2018-05-31 Thread Michael S. Tsirkin
On Wed, May 30, 2018 at 10:06:35PM -0400, 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

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

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 09:09:24AM +0530, Anshuman Khandual wrote: > 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,

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

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 02:05:07AM +, 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") >

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

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 08:58:12AM -0400, Stephen Hemminger wrote: > On Wed, 30 May 2018 20:03:11 -0700 > "Samudrala, Sridhar" wrote: > > > On 5/30/2018 7:06 PM, Stephen Hemminger wrote: > > > On Thu, 24 May 2018 09:55:14 -0700 > > > Sridhar Samudrala wrote: > > > > > >> Use the

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

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

2018-05-31 Thread Stephen Hemminger
On Wed, 30 May 2018 20:03:11 -0700 "Samudrala, Sridhar" wrote: > 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. > >>

Re: [PATCH v4] virtio_blk: add DISCARD and WRIET ZEROES commands support

2018-05-31 Thread Stefan Hajnoczi
On Tue, May 29, 2018 at 09:42:24AM +0800, Changpeng Liu wrote: > num = blk_rq_map_sg(hctx->queue, req, vbr->sg); > if (num) { > - if (rq_data_dir(req) == WRITE) > + if (rq_data_dir(req) == WRITE || type == VIRTIO_BLK_T_DISCARD || > + type ==