The following changes since commit aef4b9aaae1decc775778903922bd0075cce7a88: Linus Torvalds (1): Merge branch 'next' of git://git.kernel.org/.../benh/powerpc are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus.git virtio Amit Shah (2): virtio: console: Fix crash when hot-unplugging a port and read is blocked virtio: console: Fix crash when port is unplugged and blocked for write Christoph Hellwig (1): virtio-blk: fix minimum number of S/G elements drivers/block/virtio_blk.c | 4 +++- drivers/char/virtio_console.c | 14 +++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) commit a5b365a652206ca300256974ed9301a7d241a6ed Author: Christoph Hellwig <hch at lst.de> Date: Tue May 25 14:17:54 2010 +0200 virtio-blk: fix minimum number of S/G elements We need at least one S/G element to operate properly, as does the block layer which increments it to one anyway. We hit this due to a qemu bug which advertises a sg_elements of 0 under some circumstances. Signed-off-by: Christoph Hellwig <hch at lst.de> Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> (tweaked logic) drivers/block/virtio_blk.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 0047634d3daebca9e99a22eb89167bf77f35cdfa Author: Amit Shah <amit.shah at redhat.com> Date: Thu May 27 13:24:39 2010 +0530 virtio: console: Fix crash when hot-unplugging a port and read is blocked When removing a port we don't check if a program was blocked for read. This leads to a crash when SIGTERM is sent to the program after hot-unplugging the port. Signed-off-by: Amit Shah <amit.shah at redhat.com> Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> drivers/char/virtio_console.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) commit 60e5e0b84045ce0f6ab07a02c7fcd6627b53d2d3 Author: Amit Shah <amit.shah at redhat.com> Date: Thu May 27 13:24:40 2010 +0530 virtio: console: Fix crash when port is unplugged and blocked for write When a program that has a virtio port opened and blocked for a write operation, a port hot-unplug event will later led to a crash when SIGTERM was sent to the program. Fix that. Signed-off-by: Amit Shah <amit.shah at redhat.com> Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> drivers/char/virtio_console.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
(There are two net fixes which depend on this which will go via DaveM, so please pull soon). The following changes since commit 7e27d6e778cd87b6f2415515d7127eba53fe5d02: Linus Torvalds (1): Linux 2.6.35-rc3 are available in the git repository at: ssh://master.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6.git virtio Michael S. Tsirkin (2): virtio: return ENOMEM on out of memory virtio-pci: disable msi at startup drivers/pci/pci.c | 1 + drivers/virtio/virtio_pci.c | 3 +++ drivers/virtio/virtio_ring.c | 2 +- 3 files changed, 5 insertions(+), 1 deletions(-) commit 686d363786a53ed28ee875b84ef24e6d5126ef6f Author: Michael S. Tsirkin <mst at redhat.com> Date: Thu Jun 10 18:16:11 2010 +0300 virtio: return ENOMEM on out of memory add_buf returns ring size on out of memory, this is not what devices expect. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> Acked-by: Amit Shah <amit.shah at redhat.com> Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> Cc: stable at kernel.org # .34.x drivers/virtio/virtio_ring.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b03214d559471359e2a85ae256686381d0672f29 Author: Michael S. Tsirkin <mst at redhat.com> Date: Wed Jun 23 22:49:06 2010 -0600 virtio-pci: disable msi at startup virtio-pci resets the device at startup by writing to the status register, but this does not clear the pci config space, specifically msi enable status which affects register layout. This breaks things like kdump when they try to use e.g. virtio-blk. Fix by forcing msi off at startup. Since pci.c already has a routine to do this, we export and use it instead of duplicating code. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> Tested-by: Vivek Goyal <vgoyal at redhat.com> Acked-by: Jesse Barnes <jbarnes at virtuousgeek.org> Cc: linux-pci at vger.kernel.org Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> Cc: stable at kernel.org drivers/pci/pci.c | 1 + drivers/virtio/virtio_pci.c | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-)