xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3.1] xen block backend.
@ 2011-05-05 18:11 Konrad Rzeszutek Wilk
  2011-05-05 18:11 ` [PATCH] xen block backend driver Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-05-05 18:11 UTC (permalink / raw)
  To: linux-kernel, jaxboe; +Cc: hch, xen-devel, Ian.Campbell, stefano.stabellini

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.

There is a QEMU version of this PV protocol called 'qdisk'. The performance
of it (after tweaking it to use AIO [1]) is inferior compared to the one
I am posting here: http://thread.gmane.org/gmane.linux.kernel/1129246

Changelog since posting:
[v3: https://lkml.org/lkml/2011/4/20/403]
 - 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

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
history?

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

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

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/xen-blkback-v3.1

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               |    8 +
 drivers/block/Makefile              |    1 +
 drivers/block/xen-blkback/Makefile  |    3 +
 drivers/block/xen-blkback/blkback.c |  812 +++++++++++++++++++++++++++++++++++
 drivers/block/xen-blkback/common.h  |  129 ++++++
 drivers/block/xen-blkback/xenbus.c  |  769 +++++++++++++++++++++++++++++++++
 include/xen/blkif.h                 |  122 ++++++
 include/xen/interface/io/blkif.h    |   13 +
 8 files changed, 1857 insertions(+), 0 deletions(-)

[1]: http://darnok.org/xen/qdisk_vs_blkback_v3.1/qemu-enable-aio.patch

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH v3] xen block backend.
@ 2011-04-20 21:05 Konrad Rzeszutek Wilk
  2011-04-20 21:05 ` [PATCH] xen block backend driver Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-04-20 21:05 UTC (permalink / raw)
  To: jaxboe, linux-kernel; +Cc: xen-devel, konrad

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.

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
history?

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

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

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/xen-blkback-v3

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               |    8 +
 drivers/block/Makefile              |    1 +
 drivers/block/xen-blkback/Makefile  |    3 +
 drivers/block/xen-blkback/blkback.c |  828 +++++++++++++++++++++++++++++++++++
 drivers/block/xen-blkback/common.h  |  128 ++++++
 drivers/block/xen-blkback/xenbus.c  |  764 ++++++++++++++++++++++++++++++++
 include/xen/blkif.h                 |  122 +++++
 7 files changed, 1854 insertions(+), 0 deletions(-)

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

end of thread, other threads:[~2011-05-13  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05 18:11 [PATCH v3.1] xen block backend Konrad Rzeszutek Wilk
2011-05-05 18:11 ` [PATCH] xen block backend driver Konrad Rzeszutek Wilk
2011-05-11 15:02   ` Ian Campbell
2011-05-12 21:01     ` [Xen-devel] " Konrad Rzeszutek Wilk
2011-05-13  7:06       ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2011-04-20 21:05 [PATCH v3] xen block backend Konrad Rzeszutek Wilk
2011-04-20 21:05 ` [PATCH] xen block backend driver Konrad Rzeszutek Wilk
2011-04-21  3:40   ` Christoph Hellwig

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).