[lkml]   [2011]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v3.2] xen block backend.
The following patch implements the Xen block backend driver for
upstream Linux. This is the host side counterpart to the frontend driver
in drivers/block/xen-blkfront.c. The PV protocol is also implemented by
frontend drivers in other OSes too, such as the BSDs and even Windows.

Changelog since posting:
- added Reviewed-by: Ian Campbell <>
- fleshed out Kconfig
- unified printk to use pr_* variant
- converted spaces to tabs on structs.
- updated comments to use proper style
- prefixed structs with 'xen' and dropped typedefs.
- fixed misspellings
- moved include/xen/blkif.h in common.h
- dropped 'feature-barrier' support
- added 'feature-flush-cache' support
- tested w/ NetBSD unstable, SLES11, RHEL5, 2.6.36, 2.6.39-rc6 guests to check
for barrier/flush issues.
- fixed write performance issues
- ran benchmark numbers (

This driver has a long history as an out of tree driver but I am
submitting it here as a single monolithic patch to aid review. Once it
has been reviewed and is considered suitable for merging can we perhaps
consider merging the equivalent git branch which maintains much of

The patch is based on the driver from the xen.git pvops kernel tree but
has been put through the wringer plus several manual
cleanup passes. It has also been moved from drivers/xen/blkback to

The git tree of the broken out driver is available at:

git:// for-jens/xen-blkback-v3.2

NOTE: that this driver depends on couple of fixes to the Xen backend
subsystem. Those are available in devel/backend.base.v3 branch and are
intended for the 2.6.40 merge window.

drivers/block/Kconfig | 21 +
drivers/block/Makefile | 1 +
drivers/block/xen-blkback/Makefile | 3 +
drivers/block/xen-blkback/blkback.c | 822 +++++++++++++++++++++++++++++++++++
drivers/block/xen-blkback/common.h | 233 ++++++++++
drivers/block/xen-blkback/xenbus.c | 768 ++++++++++++++++++++++++++++++++
6 files changed, 1848 insertions(+), 0 deletions(-)

 \ /
  Last update: 2011-05-13 01:59    [W:0.031 / U:1.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site