Xen PVSCSI drivers for pvops xen/stable-2.6.32.x kernel
Subsystems (3)
RFC PATCH 1/1 Xen PVSCSI drivers for pvops xen/stable-2.6.32.x kernel
Hello,
http://pasik.reaktio.net/xen/patches/xen-pvscsi-drivers-linux-2.6.32.27-pvops-v01.diff
This is the first version of Xen PVSCSI drivers, both the scsiback backend and scsifront frontend, ported from Novell SLES11SP1 2.6.32 Xenlinux kernel to pvops xen/stable-2.6.32.x branch.
At the moment it's *only* compile-tested with the latest xen/stable-2.6.32.x git kernel as of today (2.6.32.27), on Fedora 14 x86_64.
Comments welcome.
I'm sure there are still things to fix in it.
Hopefully I managed to properly fix all the differences between Xenlinux <-> pvops.. Let me know how it goes, if you feel adventurous enough to try it :)
More info: http://wiki.xensource.com/xenwiki/XenPVSCSI
-- Pasi
drivers/scsi/Kconfig +8 -0
@@ -1838,6 +1838,14 @@ To compile this driver as a module, choose M here. The module will be called bfa. +config XEN_SCSI_FRONTEND + tristate "Xen PVSCSI frontend driver" + depends on XEN && SCSI + default m + help + The SCSI frontend driver allows the kernel to access SCSI Devices + within another guest OS. + endif # SCSI_LOWLEVEL source "drivers/scsi/pcmcia/Kconfig"
drivers/scsi/Makefile +1 -0
@@ -133,6 +133,7 @@ obj-$(CONFIG_SCSI_BNX2_ISCSI) += libiscsi.o bnx2i/ obj-$(CONFIG_BE2ISCSI) += libiscsi.o be2iscsi/ obj-$(CONFIG_SCSI_PMCRAID) += pmcraid.o +obj-$(CONFIG_XEN_SCSI_FRONTEND) += xen-scsifront/ obj-$(CONFIG_ARM) += arm/
drivers/scsi/xen-scsifront/common.h +137 -0
137 lines not on this page · raw message
drivers/scsi/xen-scsifront/Makefile +4 -0
@@ -0,0 +1,4 @@ + +obj-$(CONFIG_XEN_SCSI_FRONTEND) := xen-scsifront.o +xen-scsifront-objs := scsifront.o xenbus.o +
drivers/scsi/xen-scsifront/scsifront.c +478 -0
478 lines not on this page · raw message
drivers/scsi/xen-scsifront/xenbus.c +420 -0
420 lines not on this page · raw message
drivers/xen/Kconfig +8 -0
@@ -43,6 +43,14 @@ Implement the network backend driver, which passes packets from the guest domain's frontend drivers to the network. +config XEN_SCSI_BACKEND + tristate "Xen PVSCSI backend driver" + depends on XEN_BACKEND && SCSI + default m + help + The PVSCSI backend driver allows the kernel to export its SCSI Devices + to other Xen guests via a high-performance shared-memory interface. + config XEN_BLKDEV_BACKEND tristate "Block-device backend driver" depends on XEN_BACKEND && BLOCK
drivers/xen/Makefile +1 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_XEN_BLKDEV_BACKEND) += blkback/ obj-$(CONFIG_XEN_BLKDEV_TAP) += blktap/ obj-$(CONFIG_XEN_NETDEV_BACKEND) += netback/ +obj-$(CONFIG_XEN_SCSI_BACKEND) += scsiback/ obj-$(CONFIG_XENFS) += xenfs/ obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o obj-$(CONFIG_XEN_MCE) += mce.o
drivers/xen/scsiback/common.h +189 -0
189 lines not on this page · raw message
drivers/xen/scsiback/emulate.c +471 -0
471 lines not on this page · raw message
drivers/xen/scsiback/interface.c +185 -0
185 lines not on this page · raw message
drivers/xen/scsiback/Makefile +4 -0
@@ -0,0 +1,4 @@ +obj-$(CONFIG_XEN_SCSI_BACKEND) := xen-scsiback.o + +xen-scsiback-y := interface.o scsiback.o xenbus.o translate.o emulate.o +
drivers/xen/scsiback/scsiback.c +737 -0
737 lines not on this page · raw message
drivers/xen/scsiback/translate.c +168 -0
168 lines not on this page · raw message
drivers/xen/scsiback/xenbus.c +377 -0
165 lines not on this page · raw message
include/xen/interface/io/vscsiif.h +105 -0
105 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Part of the diff is not shown here. View the raw message.
Quoted 4 lines · Pasi Kärkkäinen
Hello,
http://pasik.reaktio.net/xen/patches/xen-pvscsi-drivers-linux-2.6.32.27-pvops-v01.diff
Quoted 8 lines
This is the first version of Xen PVSCSI drivers, both the scsiback backend and scsifront frontend, ported from Novell SLES11SP1 2.6.32 Xenlinux kernel to pvops xen/stable-2.6.32.x branch.
At the moment it's *only* compile-tested with the latest xen/stable-2.6.32.x git kernel as of today (2.6.32.27), on Fedora 14
x86_64.Comments welcome.
Without wanting to sound like a broken record:
<insert same comments regarding maintainership and upstreaming as the recent pvusb thread ;-)>
Quoted 9 lines
I'm sure there are still things to fix in it.
Hopefully I managed to properly fix all the differences between Xenlinux <-> pvops.. Let me know how it goes, if you feel adventurous enough to try it :)More info: http://wiki.xensource.com/xenwiki/XenPVSCSI
-- Pasi
Quoted 12 lines · Ian Campbell
Quoted 11 lines · Pasi Kärkkäinen
Hello,
http://pasik.reaktio.net/xen/patches/xen-pvscsi-drivers-linux-2.6.32.27-pvops-v01.diff
This is the first version of Xen PVSCSI drivers, both the scsiback backend and scsifront frontend, ported from Novell SLES11SP1 2.6.32 Xenlinux kernel to pvops xen/stable-2.6.32.x branch.
At the moment it's *only* compile-tested with the latest xen/stable-2.6.32.x git kernel as of today (2.6.32.27), on Fedora 14
x86_64.
Quoted 7 lines
Quoted 1 line
Comments welcome.
Without wanting to sound like a broken record:
<insert same comments regarding maintainership and upstreaming as the recent pvusb thread ;-)>
Yeah I knew this comment was coming up, so maybe I should have mentioned already earlier that I'm aware :)
This patch needs testing and cleaning up, and obviously upstreaming.. We'll get there :)
-- Pasi
Quoted 8 lines · Pasi Kärkkäinen
Hello,
http://pasik.reaktio.net/xen/patches/xen-pvscsi-drivers-linux-2.6.32.27-pvops-v01.diff
This is the first version of Xen PVSCSI drivers, both the scsiback backend and scsifront frontend, ported from Novell SLES11SP1 2.6.32 Xenlinux kernel to pvops xen/stable-2.6.32.x branch.
Quoted 8 lines
At the moment it's *only* compile-tested with the latest xen/stable-2.6.32.x git kernel as of today (2.6.32.27), on Fedora 14
x86_64.Comments welcome.
I'm sure there are still things to fix in it.
Hopefully I managed to properly fix all the differences between Xenlinux <-> pvops.. Let me know how it goes, if you feel adventurous enough to try it :)
I took a look at the patches and rebased them on top of v3.0 some time ago.
Had to fix up some things, but not much (most of the P2M API calls, and some of the grant table modifications) and stuck the patches in:
git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/xen-scsi.v1.0
Attached is also the full patch against v3.0 kernel. I found that it works with my SCSI disks, but you need to use Xen 4.1 (and xm). Earlier versions do something weird. I am not really sure who is using it
Ah, I also put the 2Tb fix in it.
drivers/scsi/Kconfig | 16 + drivers/scsi/Makefile | 2 + drivers/scsi/xen-scsiback/Makefile | 4 + drivers/scsi/xen-scsiback/common.h | 187 ++++++++ drivers/scsi/xen-scsiback/emulate.c | 478 ++++++++++++++++++++ drivers/scsi/xen-scsiback/interface.c | 141 ++++++ drivers/scsi/xen-scsiback/scsiback.c | 757 ++++++++++++++++++++++++++++++++ drivers/scsi/xen-scsiback/translate.c | 168 +++++++ drivers/scsi/xen-scsiback/xenbus.c | 374 ++++++++++++++++ drivers/scsi/xen-scsifront/Makefile | 4 + drivers/scsi/xen-scsifront/common.h | 137 ++++++ drivers/scsi/xen-scsifront/scsifront.c | 469 ++++++++++++++++++++ drivers/scsi/xen-scsifront/xenbus.c | 414 +++++++++++++++++ include/xen/interface/grant_table.h | 4 + include/xen/interface/io/vscsiif.h | 105 +++++ 15 files changed, 3260 insertions(+), 0 deletions(-)
drivers/scsi/Kconfig +16 -0
@@ -1909,6 +1909,22 @@ config SCSI_BFA_FC To compile this driver as a module, choose M here. The module will be called bfa. +config XEN_SCSI_FRONTEND + tristate "Xen PVSCSI frontend driver" + depends on XEN && SCSI + default m + help + The SCSI frontend driver allows the kernel to access SCSI Devices + within another guest OS. + +config XEN_SCSI_BACKEND + tristate "Xen PVSCSI backend driver" + depends on XEN_BACKEND && SCSI + default m + help + The PVSCSI backend driver allows the kernel to export its SCSI Devices + to other Xen guests via a high-performance shared-memory interface. + endif # SCSI_LOWLEVEL source "drivers/scsi/pcmcia/Kconfig"
drivers/scsi/Makefile +2 -0
@@ -140,6 +140,8 @@ obj-$(CONFIG_SCSI_CXGB4_ISCSI) += libiscsi.o libiscsi_tcp.o cxgbi/ obj-$(CONFIG_SCSI_BNX2_ISCSI) += libiscsi.o bnx2i/ obj-$(CONFIG_BE2ISCSI) += libiscsi.o be2iscsi/ obj-$(CONFIG_SCSI_PMCRAID) += pmcraid.o +obj-$(CONFIG_XEN_SCSI_FRONTEND) += xen-scsifront/ +obj-$(CONFIG_XEN_SCSI_BACKEND) += xen-scsiback/ obj-$(CONFIG_VMWARE_PVSCSI) += vmw_pvscsi.o obj-$(CONFIG_ARM) += arm/
drivers/scsi/xen-scsiback/Makefile new file +4 -0
@@ -0,0 +1,4 @@ +obj-$(CONFIG_XEN_SCSI_BACKEND) := xen-scsiback.o + +xen-scsiback-y := interface.o scsiback.o xenbus.o translate.o emulate.o +
drivers/scsi/xen-scsiback/common.h new file +187 -0
187 lines not on this page · raw message
drivers/scsi/xen-scsiback/emulate.c new file +478 -0
478 lines not on this page · raw message
drivers/scsi/xen-scsiback/interface.c new file +141 -0
141 lines not on this page · raw message
drivers/scsi/xen-scsiback/scsiback.c new file +757 -0
757 lines not on this page · raw message
drivers/scsi/xen-scsiback/translate.c new file +168 -0
168 lines not on this page · raw message
drivers/scsi/xen-scsiback/xenbus.c new file +374 -0
374 lines not on this page · raw message
drivers/scsi/xen-scsifront/Makefile new file +4 -0
@@ -0,0 +1,4 @@ + +obj-$(CONFIG_XEN_SCSI_FRONTEND) := xen-scsifront.o +xen-scsifront-objs := scsifront.o xenbus.o +
drivers/scsi/xen-scsifront/common.h new file +137 -0
137 lines not on this page · raw message
drivers/scsi/xen-scsifront/scsifront.c new file +469 -0
469 lines not on this page · raw message
drivers/scsi/xen-scsifront/xenbus.c new file +414 -0
251 lines not on this page · raw message
include/xen/interface/io/vscsiif.h new file +105 -0
105 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Part of the diff is not shown here. View the raw message.