[PATCH] vhost: cache used event for better performance

2016-12-11 Thread Jason Wang
When event index was enabled, we need to fetch used event from userspace memory each time. This userspace fetch (with memory barrier) could be saved sometime when 1) caching used event and 2) if used event is ahead of new and old to new updating does not cross it, we're sure there's no need to

RE: [PATCH v6 2/2] crypto: add virtio-crypto driver

2016-12-11 Thread Gonglei (Arei)
Hi, Michael & Herbert Because the virtio-crypto device emulation had been in QEMU 2.8, would you please merge the virtio-crypto driver for 4.10 if no other comments? If so, Miachel pls ack and/or review the patch, then Herbert will take it (I asked him last week). Thank you! Ps: Note on 4.10

Re: [PATCH 08/10] vsock/virtio: mark an internal function static

2016-12-11 Thread Jason Wang
On 2016年12月08日 22:25, Michael S. Tsirkin wrote: On Wed, Dec 07, 2016 at 12:21:22PM +0800, Jason Wang wrote: On 2016年12月06日 23:41, Michael S. Tsirkin wrote: virtio_transport_alloc_pkt is only used locally, make it static. Signed-off-by: Michael S. Tsirkin ---