virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] virtio: console: Fixes
@ 2010-02-12  5:02 Amit Shah
  2010-02-12  5:02 ` [PATCH 1/6] virtio: Initialize vq->data entries to NULL Amit Shah
  2010-02-12  9:04 ` [PATCH 0/6] virtio: console: Fixes Rusty Russell
  0 siblings, 2 replies; 10+ messages in thread
From: Amit Shah @ 2010-02-12  5:02 UTC (permalink / raw)
  To: rusty; +Cc: Amit Shah, virtualization

Hey Rusty,

Here are a few fixes for virtio and virtio_console.

The first patch ensures the data elements of vqs are properly
initialised at allocation-time so that we don't trigger BUG_ONs. I found
this when hot-unplugging ports and there was just one unused buffer.
detach_unused_buffers() kept returning pointers that were invalid. I
didn't catch this earlier as I had the in_vq filled completely.

Patches 2, 4 and 5 can be folded into the series as they are bugfixes
for the functionality present there.

About patch 5: When running a test that transfers a 260M file from the
host to the guest, qemu-kvm.git takes 17m with a single outstanding
buffer in the in_vq vs. 1m when the entire in_vq is filled. This is a
bug in qemu-kvm.git's scheduling, but since it's a big difference and
not much change involved, we could merge this now.

Comments?

If these patches are favourable, I could send you a tarball in private
so that the bugfixes are folded in the series and just patches 1, 3 and
6 are added.

Thanks,

		Amit.

Amit Shah (6):
  virtio: Initialize vq->data entries to NULL
  virtio: console: Ensure no memleaks in case of unused buffers
  virtio: console: Add ability to remove module
  virtio: console: Error out if we can't allocate buffers for control
    queue
  virtio: console: Fill ports' entire in_vq with buffers
  Add MAINTAINERS entry for virtio_console

 MAINTAINERS                   |    6 ++
 drivers/char/virtio_console.c |  132 +++++++++++++++++++++++++++++++---------
 drivers/virtio/virtio_ring.c  |    5 +-
 3 files changed, 112 insertions(+), 31 deletions(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-12  9:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12  5:02 [PATCH 0/6] virtio: console: Fixes Amit Shah
2010-02-12  5:02 ` [PATCH 1/6] virtio: Initialize vq->data entries to NULL Amit Shah
2010-02-12  5:02   ` [PATCH 2/6] virtio: console: Ensure no memleaks in case of unused buffers Amit Shah
2010-02-12  5:02     ` [PATCH 3/6] virtio: console: Add ability to remove module Amit Shah
2010-02-12  5:02       ` [PATCH 4/6] virtio: console: Error out if we can't allocate buffers for control queue Amit Shah
2010-02-12  5:02         ` [PATCH 5/6] virtio: console: Fill ports' entire in_vq with buffers Amit Shah
2010-02-12  5:02           ` [PATCH 6/6] Add MAINTAINERS entry for virtio_console Amit Shah
2010-02-12  9:58   ` [PATCH 1/6] virtio: Initialize vq->data entries to NULL Rusty Russell
2010-02-12  9:04 ` [PATCH 0/6] virtio: console: Fixes Rusty Russell
2010-02-12  9:07   ` Amit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).