[PATCH 1/2] vhost: init used ring after backend was set

2011-06-21 Thread Jason Wang
This patch move the used ring initialization after backend was set. This make us possible to disable the backend and tweak the used ring then restart. And it's also useful for log setting as used ring have been checked then. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c

[PATCH 2/2] vhost: set log when updating used flags or avail event

2011-06-21 Thread Jason Wang
We need set log when updating used flags and avail event. Otherwise guest may see stale values after migration and then do not exit or exit unexpectedly. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/vhost.c | 61 +++-- 1 files

[PATCH 00/02][RESEND] virtio: Virtio platform driver

2011-06-21 Thread Magnus Damm
virtio: Virtio platform driver [PATCH 01/02] virtio: Break out lguest virtio code to virtio_lguest.c [PATCH 02/02] virtio: Add virtio platform driver These patches add a virtio platform driver to the Linux kernel. This platform driver has the same role as the virtio_pci driver, but instead of

[PATCH 01/02] virtio: Break out lguest virtio code to virtio_lguest.c

2011-06-21 Thread Magnus Damm
From: Magnus Damm d...@opensource.se This patch breaks out code from lguest_device.c to the new file virtio_lguest.c. The new file is built when CONFIG_VIRTIO_LGUEST is selected. The x86 architecture is updated to select this kconfig variable in the case of lguest. Needed by the virtio platform

[PATCH 02/02] virtio: Add virtio platform driver

2011-06-21 Thread Magnus Damm
From: Magnus Damm d...@opensource.se This patch adds a virtio platform driver. The code is based on the lguest implementation available in drivers/lguest/lguest_device.c The iomem resource is used to point out the lguest device descriptor, and the platform data contains two separate callbacks

Re: RFT: virtio_net: limit xmit polling

2011-06-21 Thread Tom Lendacky
On Sunday, June 19, 2011 05:27:00 AM Michael S. Tsirkin wrote: OK, different people seem to test different trees. In the hope to get everyone on the same page, I created several variants of this patch so they can be compared. Whoever's interested, please check out the following, and tell me

Re: Make virtio vq size configurable by a guest.

2011-06-21 Thread Rusty Russell
On Mon, 20 Jun 2011 16:16:24 +0300, Gleb Natapov g...@redhat.com wrote: Hi, Currently in virtio host dictates the size and layout of vq that should be used. To talk to a device that has one vq with 128 elements guest needs to allocate at least 2 pages. Usually this is not a problem, but

Re: [PATCH 00/02][RESEND] virtio: Virtio platform driver

2011-06-21 Thread Rusty Russell
On Tue, 21 Jun 2011 19:26:05 +0900, Magnus Damm magnus.d...@gmail.com wrote: virtio: Virtio platform driver [PATCH 01/02] virtio: Break out lguest virtio code to virtio_lguest.c [PATCH 02/02] virtio: Add virtio platform driver These patches add a virtio platform driver to the Linux kernel.