[PATCH] virtio_net: invoke softirqs after __napi_schedule

2012-05-16 Thread Michael S. Tsirkin
__napi_schedule might raise softirq but nothing causes do_softirq to trigger, so it does not in fact run. As a result, the error message NOHZ: local_softirq_pending 08 sometimes occurs during boot of a KVM guest when the network service is started and we are oom: ... Bringing up loopback

Re: [vmw_vmci RFC 00/11] VMCI for Linux

2012-05-16 Thread Dor Laor
On 05/16/2012 02:50 AM, Greg KH wrote: On Tue, May 15, 2012 at 08:06:57AM -0700, Andrew Stiegmann (stieg) wrote: In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and

[vmw_vmci RFC 10/11] Apply vmci routing code

2012-05-16 Thread Andrew Stiegmann (stieg)
This code is responsible for routing between various hosts/guests as well as routing in nested scenarios. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_route.c | 234 drivers/misc/vmw_vmci/vmci_route.h | 34

[vmw_vmci RFC 07/11] Apply VMCI hash table

2012-05-16 Thread Andrew Stiegmann (stieg)
Implements a hash table for VMCI's use. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_hash_table.c | 494 +++ drivers/misc/vmw_vmci/vmci_hash_table.h | 56 2 files changed, 550 insertions(+), 0 deletions(-)

[vmw_vmci RFC 00/11] VMCI for Linux

2012-05-16 Thread Andrew Stiegmann (stieg)
In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (vmw_vsock) kernel modules for inclusion in the Linux kernel. The purpose of this post is to acquire

[vmw_vmci RFC 09/11] Apply VMCI resource code

2012-05-16 Thread Andrew Stiegmann (stieg)
Tracks all used resources within the vmci code. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_resource.c | 320 + drivers/misc/vmw_vmci/vmci_resource.h | 61 +++ 2 files changed, 381 insertions(+), 0

[vmw_vmci RFC 05/11] Apply VMCI event code

2012-05-16 Thread Andrew Stiegmann (stieg)
Code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 614 drivers/misc/vmw_vmci/vmci_event.h | 29 ++ 2 files changed, 643

[vmw_vmci RFC 06/11] Apply dynamic array code

2012-05-16 Thread Andrew Stiegmann (stieg)
This code adds support for dynamic arrays that will grow if they need to. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_handle_array.c | 300 + drivers/misc/vmw_vmci/vmci_handle_array.h | 50 + 2 files changed, 350

[vmw_vmci RFC 03/11] Apply VMCI doorbell code

2012-05-16 Thread Andrew Stiegmann (stieg)
Doorbell code allows for notifcations between host and guest. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_doorbell.c | 989 + drivers/misc/vmw_vmci/vmci_doorbell.h | 57 ++ 2 files changed, 1046 insertions(+), 0

[vmw_vmci RFC 02/11] Apply VMCI datagram code

2012-05-16 Thread Andrew Stiegmann (stieg)
Implements datagrams to allow data to be sent between host and guest. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_datagram.c | 760 + drivers/misc/vmw_vmci/vmci_datagram.h | 57 +++ 2 files changed, 817

[vmw_vmci RFC 01/11] Apply VMCI context code

2012-05-16 Thread Andrew Stiegmann (stieg)
Context code maintains state for vmci and allows the driver to communicate with multiple VMs. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/vmw_vmci/vmci_context.c | 1743 ++ drivers/misc/vmw_vmci/vmci_context.h | 150 +++ 2 files

[vmw_vmci RFC 11/11] Apply the header code to make VMCI build

2012-05-16 Thread Andrew Stiegmann (stieg)
Adds all the necessary files to enable building of the VMCI module with the Linux Makefiles and Kconfig systems. Also adds the header files used for building modules against the driver. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com --- drivers/misc/Kconfig|

Re: [vmw_vmci RFC 01/11] Apply VMCI context code

2012-05-16 Thread Greg KH
On Tue, May 15, 2012 at 08:06:58AM -0700, Andrew Stiegmann (stieg) wrote: +/* + *-- + * + * ctx_signal_notify -- + * + * Sets the notify flag to true. Assumes that the context lock is + * held. + * + * Results:

Re: [vmw_vmci RFC 00/11] VMCI for Linux

2012-05-16 Thread Greg KH
On Tue, May 15, 2012 at 08:06:57AM -0700, Andrew Stiegmann (stieg) wrote: In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (vmw_vsock) kernel modules

Re: [vmw_vmci RFC 01/11] Apply VMCI context code

2012-05-16 Thread Stephen Hemminger
On Tue, 15 May 2012 08:06:58 -0700 Andrew Stiegmann (stieg) astiegm...@vmware.com wrote: Context code maintains state for vmci and allows the driver to communicate with multiple VMs. Signed-off-by: Andrew Stiegmann (stieg) astiegm...@vmware.com Running checkpatch reveals the usual noise,

Re: [PATCH] virtio_net: invoke softirqs after __napi_schedule

2012-05-16 Thread Rusty Russell
On Wed, 16 May 2012 10:57:13 +0300, Michael S. Tsirkin m...@redhat.com wrote: __napi_schedule might raise softirq but nothing causes do_softirq to trigger, so it does not in fact run. As a result, the error message NOHZ: local_softirq_pending 08 sometimes occurs during boot of a KVM guest

Re: [PATCH] virtio_net: invoke softirqs after __napi_schedule

2012-05-16 Thread David Miller
From: Rusty Russell ru...@rustcorp.com.au Date: Thu, 17 May 2012 13:02:53 +0930 On Wed, 16 May 2012 10:57:13 +0300, Michael S. Tsirkin m...@redhat.com wrote: __napi_schedule might raise softirq but nothing causes do_softirq to trigger, so it does not in fact run. As a result, the error