Re: Linux-next changes for module and virtio trees.

2012-10-30 Thread Rusty Russell
Stephen Rothwell writes: > Hi Rusty, > > On Tue, 02 Oct 2012 15:56:56 +0930 Rusty Russell > wrote: >> >> Please remove my quilt tree >> http://ozlabs.org/~rusty/kernel/rr-latest/ from linux-next, and use my >> git trees from now on: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/ru

Re: [PATCH] virtio-ccw: Clarifications.

2012-10-30 Thread Rusty Russell
Cornelia Huck writes: > Clarify how indicator location is communicated and that the > feature bits are little-endian. > > Signed-off-by: Cornelia Huck Thanks, applied! Cheers, Rusty. ___ Virtualization mailing list Virtualization@lists.linux-foundati

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Greg KH
On Tue, Oct 30, 2012 at 12:43:54PM -0700, Dmitry Torokhov wrote: > On Tue, Oct 30, 2012 at 09:27:23AM -0700, Greg KH wrote: > > On Tue, Oct 30, 2012 at 09:18:07AM -0700, Dmitry Torokhov wrote: > > > > > I think that even if we had a special directory for vmci having > > > > > network > > > > > dri

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Dmitry Torokhov
On Tue, Oct 30, 2012 at 09:27:23AM -0700, Greg KH wrote: > On Tue, Oct 30, 2012 at 09:18:07AM -0700, Dmitry Torokhov wrote: > > > > I think that even if we had a special directory for vmci having network > > > > drivers in Dave's realm and pvscsi in James's is best option, so the new > > > > direct

Re: [rfc net-next v6 0/3] Multiqueue virtio-net

2012-10-30 Thread Rick Jones
On 10/30/2012 03:03 AM, Jason Wang wrote: Hi all: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. Changes from v5: - Align the imp

Re: [PATCH net-next 8/8] vhost-net: reduce vq polling on tx zerocopy

2012-10-30 Thread Vlad Yasevich
On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: It seems that to avoid deadlocks it is enough to poll vq before we are going to use the last buffer. This should be faster than c70aa540c7a9f67add11ad3161096fb95233aa2e. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/net.c | 12 +++

Re: [PATCH net-next 2/8] skb: api to report errors for zero copy skbs

2012-10-30 Thread Vlad Yasevich
On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: Orphaning frags for zero copy skbs needs to allocate data in atomic context so is has a chance to fail. If it does we currently discard the skb which is safe, but we don't report anything to the caller, so it can not recover by e.g. disabling zero

Re: [PATCH 00/16] treewide: Convert dev_printk(KERN_ to dev_(

2012-10-30 Thread Sergei Shtylyov
Hello. On 28-10-2012 12:05, Joe Perches wrote: dev_ create smaller objects than dev_printk(KERN_. Convert non-debug calls to this form. Joe Perches (16): tile: Convert dev_printk(KERN_ to dev_( [...] tile: Convert dev_printk(KERN_ to dev_( [...] tile: Convert dev_printk(KERN_ to

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Greg KH
On Tue, Oct 30, 2012 at 09:18:07AM -0700, Dmitry Torokhov wrote: > > > I think that even if we had a special directory for vmci having network > > > drivers in Dave's realm and pvscsi in James's is best option, so the new > > > directory would contain vmci and the balloon driver (vsock will go into

Re: [PATCH] Add a page cache-backed balloon device driver.

2012-10-30 Thread Mike Waychison
On Tue, Oct 30, 2012 at 8:29 AM, Michael S. Tsirkin wrote: > On Tue, Sep 11, 2012 at 12:10:18AM +0300, Michael S. Tsirkin wrote: >> > On the plus side, having an exit taken here on each page turns out to >> > be relatively cheap, as the vmexit from the page fault should be >> > faster to process a

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Dmitry Torokhov
On Tue, Oct 30, 2012 at 08:48:01AM -0700, Greg KH wrote: > On Mon, Oct 29, 2012 at 09:07:44PM -0700, Dmitry Torokhov wrote: > > Hi Greg, > > > > On Mon, Oct 29, 2012 at 07:19:38PM -0700, Greg KH wrote: > > > On Mon, Oct 29, 2012 at 06:03:28PM -0700, George Zhang wrote: > > > > drivers/misc/Kconfi

Re: [Pv-drivers] [PATCH 08/12] VMCI: resource object implementation.

2012-10-30 Thread Dmitry Torokhov
On Tuesday, October 30, 2012 08:51:59 AM Greg KH wrote: > On Mon, Oct 29, 2012 at 10:20:16PM -0700, Dmitry Torokhov wrote: > > On Mon, Oct 29, 2012 at 07:29:05PM -0700, Greg KH wrote: > > > On Mon, Oct 29, 2012 at 06:04:58PM -0700, George Zhang wrote: > > > > +static struct vmci_resource *vmci_reso

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Dmitry Torokhov
On Tuesday, October 30, 2012 08:50:41 AM Greg KH wrote: > On Mon, Oct 29, 2012 at 10:01:52PM -0700, Dmitry Torokhov wrote: > > On Mon, Oct 29, 2012 at 07:26:05PM -0700, Greg KH wrote: > > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > > +static void event_signal_destroy(struc

Re: [Pv-drivers] [PATCH 01/12] VMCI: context implementation.

2012-10-30 Thread Dmitry Torokhov
On Tuesday, October 30, 2012 08:46:52 AM Greg KH wrote: > On Mon, Oct 29, 2012 at 09:01:40PM -0700, Dmitry Torokhov wrote: > > Hi Greg, > > > > On Mon, Oct 29, 2012 at 07:10:58PM -0700, Greg KH wrote: > > > On Mon, Oct 29, 2012 at 06:03:42PM -0700, George Zhang wrote: > > > > +/* > > > > + * Relea

Re: [PATCH net-next 2/8] skb: api to report errors for zero copy skbs

2012-10-30 Thread Michael S. Tsirkin
On Tue, Oct 30, 2012 at 11:44:16AM -0400, Vlad Yasevich wrote: > On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: > >Orphaning frags for zero copy skbs needs to allocate data in atomic > >context so is has a chance to fail. If it does we currently discard > >the skb which is safe, but we don't rep

Re: [Pv-drivers] [PATCH 08/12] VMCI: resource object implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 10:20:16PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:29:05PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:58PM -0700, George Zhang wrote: > > > +static struct vmci_resource *vmci_resource_lookup(struct vmci_handle > > > handle) > > > +{ > > > + s

Re: [PATCH net-next 8/8] vhost-net: reduce vq polling on tx zerocopy

2012-10-30 Thread Michael S. Tsirkin
On Tue, Oct 30, 2012 at 11:47:45AM -0400, Vlad Yasevich wrote: > On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: > >It seems that to avoid deadlocks it is enough to poll vq before > > we are going to use the last buffer. This should be faster than > >c70aa540c7a9f67add11ad3161096fb95233aa2e. >

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 10:01:52PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:26:05PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > +static void event_signal_destroy(struct kref *kref) > > > +{ > > > + struct vmci_subscription *entry =

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 09:58:21PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:24:46PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > +/* > > > + * Releases the given VMCISubscription. > > > + * Fires the destroy event if the reference c

Re: [Pv-drivers] [PATCH 04/12] VMCI: device driver implementaton.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 09:15:22PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:23:47PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:15PM -0700, George Zhang wrote: > > > +static int __init vmci_core_init(void) > > > +{ > > > + int result; > > > + > > > + result = vmci_ctx_

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 09:07:44PM -0700, Dmitry Torokhov wrote: > Hi Greg, > > On Mon, Oct 29, 2012 at 07:19:38PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:03:28PM -0700, George Zhang wrote: > > > drivers/misc/Kconfig |1 > > > drivers/misc/Makefile

Re: [Pv-drivers] [PATCH 01/12] VMCI: context implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 09:01:40PM -0700, Dmitry Torokhov wrote: > Hi Greg, > > On Mon, Oct 29, 2012 at 07:10:58PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:03:42PM -0700, George Zhang wrote: > > > +/* > > > + * Releases the VMCI context. If this is the last reference to > > > + * the c

Re: [PATCH] Add a page cache-backed balloon device driver.

2012-10-30 Thread Michael S. Tsirkin
On Tue, Sep 11, 2012 at 12:10:18AM +0300, Michael S. Tsirkin wrote: > > On the plus side, having an exit taken here on each page turns out to > > be relatively cheap, as the vmexit from the page fault should be > > faster to process as it is fully handled within the host kernel. > > > > Perhaps so

[rfc net-next v6 3/3] virtio-net: change the number of queues through ethtool

2012-10-30 Thread Jason Wang
This patch implement the {set|get}_channels method of ethool to allow user to change the number of queues dymaically when the device is running. This would let the user to tune the device for specific applications. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 43 +++

[rfc net-next v6 2/3] virtio_net: multiqueue support

2012-10-30 Thread Jason Wang
This addes multiqueue support to virtio_net driver. There's two mode supported: single queue pair mode and multiple queue pairs mode. An obvious difference compared with a physical mq card is that virtio-net reserve first two virtqueues when it is working in multiqueue mode, this is used for implem

[rfc net-next v6 1/3] virtio_net: Introduce VIRTIO_NET_F_MULTIQUEUE

2012-10-30 Thread Jason Wang
From: Krishna Kumar Introduce VIRTIO_NET_F_MULTIQUEUE. Signed-off-by: Krishna Kumar Signed-off-by: Jason Wang --- include/uapi/linux/virtio_net.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 24

[rfc net-next v6 0/3] Multiqueue virtio-net

2012-10-30 Thread Jason Wang
Hi all: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. Changes from v5: - Align the implementation with the RFC spec update v4 - Sw

[PATCH v8 3/3] virtio_console: Remove buffers from out_vq at port removal

2012-10-30 Thread Sjur Brændeland
From: Sjur Brændeland Remove buffers from the out-queue when a rproc_serial device is removed. Rproc_serial communicates with remote processors that may crash and leave buffers in the out-queue. But the virtio_console device is not supposed to leave buffers in the out-queue when a port is removed

[PATCH v8 2/3] virtio_console: Add support for remoteproc serial

2012-10-30 Thread Sjur Brændeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCH v8 1/3] virtio_console: Merge struct buffer_token into struct port_buffer

2012-10-30 Thread Sjur Brændeland
From: Sjur Brændeland Refactoring the splice functionality by unifying the approach for sending scatter-lists and regular buffers. This simplifies buffer handling and reduces code size. Splice will now allocate a port_buffer and send_buf() and free_buf() can always be used for any buffer. Signed

[PATCHv8 0/3]virtio_console: Add rproc_serial driver

2012-10-30 Thread Sjur Brændeland
From: Sjur Brændeland This patch-set introduces a new virtio type "rproc_serial" for communicating with remote processors over shared memory. The driver depends on the the remoteproc framework. As preparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling.