[PATCH] s390: virtio: constify virtio_config_ops structures

2017-01-13 Thread Bhumika Goyal
Declare virtio_config_ops structure as const as it is only stored in the config field of a virtio_device structure. This field is of type const, so virtio_config_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i;

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Michael S. Tsirkin
On Fri, Jan 13, 2017 at 05:21:54PM +, Will Deacon wrote: > On Fri, Jan 13, 2017 at 06:46:32PM +0200, Michael S. Tsirkin wrote: > > On Fri, Jan 13, 2017 at 09:25:22AM +, Will Deacon wrote: > > > On Fri, Jan 13, 2017 at 12:12:56AM +0200, Michael S. Tsirkin wrote: > > > > On Wed, Jan 11, 2017

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Will Deacon
On Fri, Jan 13, 2017 at 06:46:32PM +0200, Michael S. Tsirkin wrote: > On Fri, Jan 13, 2017 at 09:25:22AM +, Will Deacon wrote: > > On Fri, Jan 13, 2017 at 12:12:56AM +0200, Michael S. Tsirkin wrote: > > > On Wed, Jan 11, 2017 at 10:01:39AM +, Will Deacon wrote: > > > > On Wed, Jan 11, 2017

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Michael S. Tsirkin
On Wed, Jan 11, 2017 at 10:12:36AM -0800, Andy Lutomirski wrote: > On Wed, Jan 11, 2017 at 2:01 AM, Will Deacon wrote: > > On Wed, Jan 11, 2017 at 01:33:31AM +0200, Michael S. Tsirkin wrote: > >> On Tue, Jan 10, 2017 at 05:51:18PM +, Robin Murphy wrote: > >> > From: Will

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Michael S. Tsirkin
On Fri, Jan 13, 2017 at 09:25:22AM +, Will Deacon wrote: > On Fri, Jan 13, 2017 at 12:12:56AM +0200, Michael S. Tsirkin wrote: > > On Wed, Jan 11, 2017 at 10:01:39AM +, Will Deacon wrote: > > > On Wed, Jan 11, 2017 at 01:33:31AM +0200, Michael S. Tsirkin wrote: > > > > On Tue, Jan 10, 2017

Re: [PATCH v2] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Herbert Xu
On Fri, Jan 13, 2017 at 05:34:16PM +0800, Gonglei wrote: > Some hardware accelerators (like intel aesni or the s390 > cpacf functions) have lower priorities than virtio > crypto, and those drivers are faster than the same in > the host via virtio. So let's lower the priority of > virtio-crypto's

Re: [PATCH] virtio_mmio: expose header to userspace

2017-01-13 Thread Michael S. Tsirkin
On Thu, Jan 12, 2017 at 11:58:22PM -0800, Christoph Hellwig wrote: > On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote: > > It's handy for userspace emulators like QEMU. > > But it's not actually a userspace API - it's an on the write protocol. We do this for all other virtio

[PATCH 4.9 41/59] tools/virtio: fix READ_ONCE()

2017-01-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mark Rutland commit 5da889c795b1fbefc9d8f058b54717ab8ab17891 upstream. The virtio tools implementation of READ_ONCE() has a single parameter called 'var', but erroneously

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Will Deacon
On Wed, Jan 11, 2017 at 10:12:36AM -0800, Andy Lutomirski wrote: > On Wed, Jan 11, 2017 at 2:01 AM, Will Deacon wrote: > > On Wed, Jan 11, 2017 at 01:33:31AM +0200, Michael S. Tsirkin wrote: > >> On Tue, Jan 10, 2017 at 05:51:18PM +, Robin Murphy wrote: > >> > From: Will

[PATCH v2] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Gonglei
Some hardware accelerators (like intel aesni or the s390 cpacf functions) have lower priorities than virtio crypto, and those drivers are faster than the same in the host via virtio. So let's lower the priority of virtio-crypto's algorithm, make it's higher than software implementations but lower

Re: [PATCH v2 2/2] vring: Force use of DMA API for ARM-based systems

2017-01-13 Thread Will Deacon
On Fri, Jan 13, 2017 at 12:12:56AM +0200, Michael S. Tsirkin wrote: > On Wed, Jan 11, 2017 at 10:01:39AM +, Will Deacon wrote: > > On Wed, Jan 11, 2017 at 01:33:31AM +0200, Michael S. Tsirkin wrote: > > > On Tue, Jan 10, 2017 at 05:51:18PM +, Robin Murphy wrote: > > > > From: Will Deacon

RE: [PATCH] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Gonglei (Arei)
> > From: Christian Borntraeger [mailto:borntrae...@de.ibm.com] > Sent: Friday, January 13, 2017 4:28 PM > To: Gonglei (Arei); virtualization@lists.linux-foundation.org; > linux-cry...@vger.kernel.org; linux-ker...@vger.kernel.org > Cc: m...@redhat.com; herb...@gondor.apana.org.au > Subject: Re:

RE: [virtio-dev] Re: [PATCH v6 kernel 2/5] virtio-balloon: define new feature bit and head struct

2017-01-13 Thread Li, Liang Z
> On Wed, Dec 21, 2016 at 02:52:25PM +0800, Liang Li wrote: > > Add a new feature which supports sending the page information with > > range array. The current implementation uses PFNs array, which is not > > very efficient. Using ranges can improve the performance of > > inflating/deflating

Re: [PATCH] virtio-crypto: adjust priority of algorithm

2017-01-13 Thread Christian Borntraeger
ACK. Whoever takes this patch might want to fixup 3 typos. On 01/13/2017 07:25 AM, Gonglei wrote: > Some hardware accelerators (like intel aseni or the s390 aesni > cpacf functions) have lower priorities than virtio > crypto, and those drivers are faster