[patch -next] tcm_vhost: another strlen() off by one

2012-07-13 Thread Dan Carpenter
strlen() doesn't count the NUL terminator. I missed this one in the patches I sent yesterday. Signed-off-by: Dan Carpenter diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index 29850cb..ea72198 100644 --- a/drivers/vhost/tcm_vhost.c +++ b/drivers/vhost/tcm_vhost.c @@ -1424,7

[PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-13 Thread Asias He
vhost-blk is a in kernel virito-blk device accelerator. This patch is based on Liu Yuan's implementation with various improvements and bug fixes. Notably, this patch makes guest notify and host completion processing in parallel which gives about 60% performance improvement compared to Liu Yuan's i

[PATCH RESEND 4/5] vhost-net: Use VHOST_NET_FEATURES for vhost-net

2012-07-13 Thread Asias He
vhost-net's feature does not deseve the name VHOST_FEATURES. Use VHOST_NET_FEATURES instead. Cc: Michael S. Tsirkin Cc: linux-ker...@vger.kernel.org Cc: k...@vger.kernel.org Cc: virtualization@lists.linux-foundation.org Signed-off-by: Asias He --- drivers/vhost/net.c |4 ++-- drivers/vhos

[PATCH RESEND 3/5] vhost: Make vhost a separate module

2012-07-13 Thread Asias He
Currently, vhost-net is the only consumer of vhost infrastructure. So vhost infrastructure and vhost-net driver are in a single module. Separating this as a vhost.ko module and a vhost-net.ko module makes it is easier to share code with other vhost drivers, e.g. vhost-blk.ko, tcm-vhost.ko. Cc: Mi

[PATCH RESEND 2/5] eventfd: Export symbol eventfd_file_create()

2012-07-13 Thread Asias He
This is useful for people who want to create an eventfd in kernel, e.g. vhost-blk. Cc: Alexander Viro Cc: Jeff Moyer Cc: Michael S. Tsirkin Cc: linux-fsde...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: k...@vger.kernel.org Cc: virtualization@lists.linux-foundation.org Signed-off-by: As

[PATCH RESEND 1/5] aio: Export symbols and struct kiocb_batch for in kernel aio usage

2012-07-13 Thread Asias He
This is useful for people who want to use aio in kernel, e.g. vhost-blk. Cc: Benjamin LaHaise Cc: Alexander Viro Cc: Jeff Moyer Cc: James Bottomley Cc: Michael S. Tsirkin Cc: linux-...@kvack.org Cc: linux-fsde...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: k...@vger.kernel.org Cc: vi

[PATCH RESEND 0/5] Add vhost-blk support

2012-07-13 Thread Asias He
Hi folks, [I am resending to fix the broken thread in the previous one.] This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device accelerator. Compared to userspace virtio-blk implementation, vhost-blk gives about 5% to 15% performance improvement. Asias He (5): aio: E

[PATCH V3 3/3] virtio-blk: Add bio-based IO path for virtio-blk

2012-07-13 Thread Asias He
This patch introduces bio-based IO path for virtio-blk. Compared to request-based IO path, bio-based IO path uses driver provided ->make_request_fn() method to bypasses the IO scheduler. It handles the bio to device directly without allocating a request in block layer. This reduces the IO path in

[PATCH V3 2/3] block: Add blk_bio_map_sg() helper

2012-07-13 Thread Asias He
Add a helper to map a bio to a scatterlist, modelled after blk_rq_map_sg. This helper is useful for any driver that wants to create a scatterlist from its ->make_request_fn method. Changes in v2: - Use __blk_segment_map_sg to avoid duplicated code - Add cocbook style function comment Cc: Jens

[PATCH V3 1/3] block: Introduce __blk_segment_map_sg() helper

2012-07-13 Thread Asias He
Split the mapping code in blk_rq_map_sg() to a helper __blk_segment_map_sg(), so that other mapping function, e.g. blk_bio_map_sg(), can share the code. Cc: Jens Axboe Cc: Tejun Heo Cc: Shaohua Li Cc: linux-ker...@vger.kernel.org Suggested-by: Tejun Heo Suggested-by: Jens Axboe Signed-off-by:

[PATCH V3 0/3] Improve virtio-blk performance

2012-07-13 Thread Asias He
This patchset implements bio-based IO path for virito-blk to improve performance. Fio test shows bio-based IO path gives the following performance improvement: 1) Ramdisk device With bio-based IO path, sequential read/write, random read/write IOPS boost : 28%, 24%, 21%, 16%

[Xen-devel] [PATCH-v2] xen: populate correct number of pages when across mem boundary

2012-07-13 Thread zhenzhong.duan
When populate pages across a mem boundary at bootup, the page count populated isn't correct. This is due to mem populated to non-mem region and ignored. Pfn range is also wrongly aligned when mem boundary isn't page aligned. -v2: If xen_do_chunk fail(populate), abort this chunk and any others. S