Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-23 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 11:54:41AM +0800, Jason Wang wrote: > On 2018年01月20日 01:20, Stefan Hajnoczi wrote: > > > I don't propose any new idea. I just want to know what's the advantage of > > > vhost-pci over zerocopy. Both needs one time of copy, the difference is > > > the > > > vhost-pci did it

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-21 Thread Jason Wang
On 2018年01月20日 01:20, Stefan Hajnoczi wrote: I don't propose any new idea. I just want to know what's the advantage of vhost-pci over zerocopy. Both needs one time of copy, the difference is the vhost-pci did it inside a guest but zerocopy did in on host. Exitless VM2VM communication is desira

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-19 Thread Stefan Hajnoczi
On Thu, Jan 18, 2018 at 07:51:49PM +0800, Jason Wang wrote: > > > On 2018年01月18日 18:51, Stefan Hajnoczi wrote: > > On Tue, Jan 16, 2018 at 01:41:37PM +0800, Jason Wang wrote: > > > > > > On 2018年01月15日 21:56, Stefan Hajnoczi wrote: > > > > On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wro

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-18 Thread Jason Wang
On 2018年01月18日 18:51, Stefan Hajnoczi wrote: On Tue, Jan 16, 2018 at 01:41:37PM +0800, Jason Wang wrote: On 2018年01月15日 21:56, Stefan Hajnoczi wrote: On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: And what's more important, accordin

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-18 Thread Stefan Hajnoczi
On Tue, Jan 16, 2018 at 01:41:37PM +0800, Jason Wang wrote: > > > On 2018年01月15日 21:56, Stefan Hajnoczi wrote: > > On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wrote: > > > On 2018年01月12日 18:18, Stefan Hajnoczi wrote: > > > > > And what's more important, according to the kvm 2016 slides o

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-17 Thread Wei Wang
On 01/16/2018 01:33 PM, Jason Wang wrote: On 2018年01月15日 18:43, Wei Wang wrote: On 01/15/2018 04:34 PM, Jason Wang wrote: On 2018年01月15日 15:59, Wei Wang wrote: On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Jason Wang
On 2018年01月15日 21:56, Stefan Hajnoczi wrote: On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: And what's more important, according to the kvm 2016 slides of vhost-pci, the motivation of vhost-pci is not building SDN but a chain of VNFs.

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Jason Wang
On 2018年01月15日 18:43, Wei Wang wrote: On 01/15/2018 04:34 PM, Jason Wang wrote: On 2018年01月15日 15:59, Wei Wang wrote: On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't do software defined network or storage wit

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Stefan Hajnoczi
On Sun, Jan 14, 2018 at 03:36:19AM +, Wang, Wei W wrote: > On Friday, January 12, 2018 6:38 PM, Stefan Hajnoczi wrote: > > On Fri, Jan 12, 2018 at 02:44:00PM +0800, Wei Wang wrote: > > > On 01/11/2018 05:56 PM, Stefan Hajnoczi wrote: > > > > On Thu, Jan 11, 2018 at 6:31 AM, Wei Wang > > wrote:

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Stefan Hajnoczi
On Mon, Jan 15, 2018 at 02:56:31PM +0800, Jason Wang wrote: > On 2018年01月12日 18:18, Stefan Hajnoczi wrote: > > > And what's more important, according to the kvm 2016 slides of vhost-pci, > > > the motivation of vhost-pci is not building SDN but a chain of VNFs. So > > > bypassing the central vswitc

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Wei Wang
On 01/15/2018 04:34 PM, Jason Wang wrote: On 2018年01月15日 15:59, Wei Wang wrote: On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't do software defined network or storage with exist virtio device/drivers (or are the

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-15 Thread Jason Wang
On 2018年01月15日 15:59, Wei Wang wrote: On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't do software defined network or storage with exist virtio device/drivers (or are there any shortcomings that force us to inven

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-14 Thread Wei Wang
On 01/15/2018 02:56 PM, Jason Wang wrote: On 2018年01月12日 18:18, Stefan Hajnoczi wrote: I just fail understand why we can't do software defined network or storage with exist virtio device/drivers (or are there any shortcomings that force us to invent new infrastructure). Existing virti

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-14 Thread Wei Wang
On 01/12/2018 06:18 PM, Stefan Hajnoczi wrote: On Fri, Jan 12, 2018 at 11:32:56AM +0800, Jason Wang wrote: On 2018年01月11日 23:23, Stefan Hajnoczi wrote: On Thu, Jan 11, 2018 at 06:57:03PM +0800, Jason Wang wrote: On 2018年01月11日 00:14, Stefan Hajnoczi wrote: Looks not, if I read the code cor

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-14 Thread Jason Wang
On 2018年01月12日 18:18, Stefan Hajnoczi wrote: Form what I'm understanding, vhost-pci tries to build a scalable V2V private datapath. But according to what you describe here, virito-vhost-user tries to make it possible to implement the device inside another VM. I understand the goal of vhost-pci

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-14 Thread Jason Wang
On 2018年01月12日 13:20, Yang, Zhiyong wrote: Both vhost-pci and virtio-vhost-user work using shared memory access to the guest RAM of the other VM. Therefore they can poll virtqueues and avoid vmexit. They do also support cross-VM interrupts, thanks to QEMU setting up irqfd/ioeventfd appropr

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-13 Thread Wang, Wei W
On Friday, January 12, 2018 6:38 PM, Stefan Hajnoczi wrote: > On Fri, Jan 12, 2018 at 02:44:00PM +0800, Wei Wang wrote: > > On 01/11/2018 05:56 PM, Stefan Hajnoczi wrote: > > > On Thu, Jan 11, 2018 at 6:31 AM, Wei Wang > wrote: > > > > On 01/11/2018 12:14 AM, Stefan Hajnoczi wrote: > > > I expect

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-12 Thread Stefan Hajnoczi
On Fri, Jan 12, 2018 at 02:44:00PM +0800, Wei Wang wrote: > On 01/11/2018 05:56 PM, Stefan Hajnoczi wrote: > > On Thu, Jan 11, 2018 at 6:31 AM, Wei Wang wrote: > > > On 01/11/2018 12:14 AM, Stefan Hajnoczi wrote: > > > Without above two, the solution already works well, so I'm not sure why > > >

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-12 Thread Stefan Hajnoczi
On Fri, Jan 12, 2018 at 11:32:56AM +0800, Jason Wang wrote: > > > On 2018年01月11日 23:23, Stefan Hajnoczi wrote: > > On Thu, Jan 11, 2018 at 06:57:03PM +0800, Jason Wang wrote: > > > > > > On 2018年01月11日 00:14, Stefan Hajnoczi wrote: > > > > Hi Wei, > > > > I wanted to summarize the differences be

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Wei Wang
On 01/11/2018 05:56 PM, Stefan Hajnoczi wrote: On Thu, Jan 11, 2018 at 6:31 AM, Wei Wang wrote: On 01/11/2018 12:14 AM, Stefan Hajnoczi wrote: 2) requires the driver to join the vhost-user negotiation. The driver must participate in vhost-user negotiation. The vhost-pci patches try to avoid

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Yang, Zhiyong
Hi Jason, > -Original Message- > From: Qemu-devel [mailto:qemu-devel- > bounces+zhiyong.yang=intel@nongnu.org] On Behalf Of Jason Wang > Sent: Friday, January 12, 2018 11:33 AM > To: Stefan Hajnoczi > Cc: Wang, Wei W ; qemu-devel@nongnu.org > Subject: Re: [Qemu

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Jason Wang
On 2018年01月11日 23:23, Stefan Hajnoczi wrote: On Thu, Jan 11, 2018 at 06:57:03PM +0800, Jason Wang wrote: On 2018年01月11日 00:14, Stefan Hajnoczi wrote: Hi Wei, I wanted to summarize the differences between the vhost-pci and virtio-vhost-user approaches because previous discussions may have bee

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Stefan Hajnoczi
On Thu, Jan 11, 2018 at 06:57:03PM +0800, Jason Wang wrote: > > > On 2018年01月11日 00:14, Stefan Hajnoczi wrote: > > Hi Wei, > > I wanted to summarize the differences between the vhost-pci and > > virtio-vhost-user approaches because previous discussions may have been > > confusing. > > > > vhost-

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Jason Wang
On 2018年01月11日 00:14, Stefan Hajnoczi wrote: Hi Wei, I wanted to summarize the differences between the vhost-pci and virtio-vhost-user approaches because previous discussions may have been confusing. vhost-pci defines a new virtio device type for each vhost device type (net, scsi, blk). It th

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-11 Thread Stefan Hajnoczi
On Thu, Jan 11, 2018 at 6:31 AM, Wei Wang wrote: > On 01/11/2018 12:14 AM, Stefan Hajnoczi wrote: >> >> Hi Wei, >> I wanted to summarize the differences between the vhost-pci and >> virtio-vhost-user approaches because previous discussions may have been >> confusing. >> >> vhost-pci defines a new

Re: [Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-10 Thread Wei Wang
On 01/11/2018 12:14 AM, Stefan Hajnoczi wrote: Hi Wei, I wanted to summarize the differences between the vhost-pci and virtio-vhost-user approaches because previous discussions may have been confusing. vhost-pci defines a new virtio device type for each vhost device type (net, scsi, blk). It th

[Qemu-devel] vhost-pci and virtio-vhost-user

2018-01-10 Thread Stefan Hajnoczi
Hi Wei, I wanted to summarize the differences between the vhost-pci and virtio-vhost-user approaches because previous discussions may have been confusing. vhost-pci defines a new virtio device type for each vhost device type (net, scsi, blk). It therefore requires a virtio device driver for each