Skip to contentSkip to conversation

I/O request Manager body

PATCH New Satoshi Uchida 1 participant 1 message Jul 30, 2007 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 I/O request Manager body

This patch provides a I/O request management framework.

This framework can control virtual block device threads at 7 places :
* deciding that virtual block devices(threads) is ether going or waiting,
* before allocating pending_request variables,
* after allocated pending_request variables,
* after allocated no pending_request variables (Namely, out of request),
* after freed pending_request variables and
* starting/stopping virtual block devices(threads).

And, iomgr provides the total number of pending requests in blkback and blktap.

--------------------------------------------------
Satoshi UCHIDA
NEC Corporation, Japan

# HG changeset patch
# User [email protected]
# Date 1184302359 -32400
# Node ID aee77a9230c1b19873e60761d080af517bbfb189 # Parent e64625df946b81ac1a5f8be7c5d0ae2aad618d7c [IOMGR] Add I/O request management framework.
This is body for I/O request management.

Signed-by-off Satoshi UCHIDA <[email protected]>

drivers/xen/Kconfig +9 -0
diff -r e64625df946b -r aee77a9230c1 drivers/xen/Kconfig
@@ -65,6 +65,15 @@ config XEN_BLKDEV_TAP
           high-performance block backends, where disk images may be implemented
           as files, in memory, or on other hosts across the network.  This 
 	  driver can safely coexist with the existing blockback driver.
+
+config XEN_IOMGR
+	tristate "Backend I/O request manager framework"
+	depends on XEN_BACKEND || XEN_BLKDEV_TAP
+	default y
+	help
+	  The Backend I/O request manager framework provides interface
+	  which makes backend driver to control I/O requests by I/O 
+	  control modules
 
 config XEN_NETDEV_BACKEND
 	tristate "Network-device backend driver"
drivers/xen/Makefile +1 -0
diff -r e64625df946b -r aee77a9230c1 drivers/xen/Makefile
@@ -10,6 +10,7 @@ obj-y	+= util.o
 obj-y	+= util.o
 obj-$(CONFIG_XEN_BLKDEV_BACKEND)	+= blkback/
 obj-$(CONFIG_XEN_BLKDEV_TAP)		+= blktap/
+obj-$(CONFIG_XEN_IOMGR)			+= iomgr/
 obj-$(CONFIG_XEN_NETDEV_BACKEND)	+= netback/
 obj-$(CONFIG_XEN_TPMDEV_BACKEND)	+= tpmback/
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+= blkfront/
drivers/xen/iomgr/Makefile new file +4 -0
diff -r e64625df946b -r aee77a9230c1 drivers/xen/iomgr/Makefile
@@ -0,0 +1,4 @@
+obj-$(CONFIG_XEN_IOMGR) := xeniomgr.o
+
+xeniomgr-y := iomgr.o
+
drivers/xen/iomgr/iomgr.c new file +188 -0

188 lines not on this page · raw message

include/xen/iomgr.h new file +100 -0

100 lines not on this page · raw message