RE: [RFC][PATCH v3 1/3] A device for zero-copy based on KVM virtio-net.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Xin, Xiaohui
Date: Thursday, April 15, 2010 - 2:01 am

Arnd,




I have not looked into your macvtap code in detail before.
Does the two interface exactly the same? We just want to create a simple
way to do zero-copy. Now it can only support vhost, but in future
we also want it to support directly read/write operations from user space too.

Basically, compared to the interface, I'm more worried about the modification
to net core we have made to implement zero-copy now. If this hardest part
can be done, then any user space interface modifications or integrations are 
more easily to be done after that.



	Thanks. Will try that.





I don't like this too, but since the kiocb is maintained by vhost with a list_head.
And mp device is responsible to collect the kiocb into the list_head,
We need something known by vhost/mp both.
 


See Patch v3 2/3 I have sent out, it is called by handle_rx() in vhost.



Let me think.






 Thanks, will look into this.



Using that flag is tried to prevent if another one wants to bind the same device
Again. But I will see if it really ignore all other flags.



Yes, that's a problem I have not addressed yet.



 I saw Michael have given the answer already.



 Thanks. I wrote them too quickly. :-(



I used them try to prevent the one who want to bind the same device again.
	Arnd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Michael S. Tsirkin, (Wed Apr 14, 8:26 am)
Re: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Michael S. Tsirkin, (Wed Apr 14, 9:16 am)
Re: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Michael S. Tsirkin, (Wed Apr 14, 1:31 pm)
Re: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Michael S. Tsirkin, (Wed Apr 14, 1:40 pm)
RE: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Xin, Xiaohui, (Thu Apr 15, 2:01 am)
Re: [RFC][PATCH v3 1/3] A device for zero-copy based on KV ..., Michael S. Tsirkin, (Thu Apr 15, 2:03 am)
Re: [RFC][PATCH v3 2/3] Provides multiple submits and asyn ..., Michael S. Tsirkin, (Thu Apr 22, 2:49 am)
Re: [RFC][PATCH v3 2/3] Provides multiple submits and asyn ..., Michael S. Tsirkin, (Sat Apr 24, 12:32 pm)