Skip to content

RFC xen-block: indirect descriptors

Roger Pau Monne lkml xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 76 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12xen-blkback: don't store dev_bus_addrdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h+3 -50 replies
1/12xen-blkback: don't store dev_bus_addrdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h+3 -58 replies
2/12xen-blkback: fix foreach_grant_safe to handle empty listsdrivers/block/xen-blkback/blkback.c+1 -10 replies
3/12xen-blkfront: switch from llist to listdrivers/block/xen-blkfront.c+18 -230 replies
4/12xen-blkfront: pre-allocate pages for requestsdrivers/block/xen-blkfront.c+79 -4112 replies
5/12xen-blkfront: remove frame list from blk_shadowdrivers/block/xen-blkfront.c+1 -50 replies
6/12xen-blkback: implement LRU mechanism for persistent grantsdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h drivers/block/xen-blkback/xenbus.c+166 -468 replies
7/12xen-blkback: print stats about persistent grantsdrivers/block/xen-blkback/blkback.c+3 -20 replies
8/12xen-blkback: use balloon pages for all mappingsdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h drivers/block/xen-blkback/xenbus.c+159 -1276 replies
9/12xen-blkback: move pending handles list from blkbk to pending_reqdrivers/block/xen-blkback/blkback.c+4 -120 replies
9/12xen-blkback: move pending handles list from blkbk to pending_reqdrivers/block/xen-blkback/blkback.c+4 -122 replies
10/12xen-blkback: make the queue of free requests per backenddrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h drivers/block/xen-blkback/xenbus.c+67 -1002 replies
11/12xen-blkback: expand map/unmap functionsdrivers/block/xen-blkback/blkback.c+85 -490 replies
11/12xen-blkback: expand map/unmap functionsdrivers/block/xen-blkback/blkback.c+85 -490 replies
12/12xen-block: implement indirect descriptorsdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h drivers/block/xen-blkback/xenbus.c +2 more+622 -1180 replies
12/12xen-block: implement indirect descriptorsdrivers/block/xen-blkback/blkback.c drivers/block/xen-blkback/common.h drivers/block/xen-blkback/xenbus.c +2 more+622 -11830 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 00/12] xen-block: indirect descriptors

This series contains the initial implementation of indirect descriptors for Linux blkback/blkfront.

Patches 1, 2, 3, 4 and 5 are bug fixes and minor optimizations.

Patch 6 contains a LRU implementation for blkback that will be needed when using indirect descriptors (since we are no longer able to map all possible grants blkfront might use).

Patch 7 is an addition to the print stats function in blkback in order to print information regarding persistent grant usage.

Patches 8, 9, 10 and 11 are preparatory work for indirect descriptors implementation, mainly make blkback use dynamic memory and remove the shared blkbk structure, so each blkback instance has it's own list of free requests, pages, handles and so on.

Finally patch 12 contains the indirect descriptors implementation.

I've also pushed this series to the following git repository:

git://xenbits.xen.org/people/royger/linux.git xen-block-indirect

Performance benefit of this series can be seen in the following graph:

http://xenbits.xen.org/people/royger/plot_indirect.png

Thanks for the review, Roger.