Skip to contentSkip to conversation

linux: make gntdev code configurable

PATCH New Jan Beulich 1 participant 1 message Dec 11, 2007 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: make gntdev code configurable

As usual, written and tested on 2.6.24-rc4 and made apply to the 2.6.18 tree without further testing.

drivers/xen/Kconfig +7 -0
Index: head-2007-12-11/drivers/xen/Kconfig
===================================================================
@@ -187,6 +187,13 @@ config XEN_NETDEV_FRONTEND
 	  dedicated device-driver domain, or your master control domain
 	  (domain 0), then you almost certainly want to say Y here.
 
+config XEN_GRANT_DEV
+	tristate "User-space granted page access driver"
+	default XEN_PRIVILEGED_GUEST
+	help
+	  Device for accessing (in user-space) pages that have been granted
+	  by other domains.
+
 config XEN_FRAMEBUFFER
 	tristate "Framebuffer-device frontend driver"
 	depends on XEN && FB
drivers/xen/Makefile +1 -1
Index: head-2007-12-11/drivers/xen/Makefile
===================================================================
@@ -4,7 +4,6 @@ obj-$(CONFIG_XEN)		+= core/
 obj-y	+= console/
 obj-y	+= evtchn/
 obj-y	+= xenbus/
-obj-y	+= gntdev/
 obj-y	+= char/
 
 obj-y	+= util.o
@@ -20,3 +19,4 @@ obj-$(CONFIG_XEN_PCIDEV_FRONTEND)	+= pci
 obj-$(CONFIG_XEN_FRAMEBUFFER)		+= fbfront/
 obj-$(CONFIG_XEN_KEYBOARD)		+= fbfront/
 obj-$(CONFIG_XEN_PRIVCMD)	+= privcmd/
+obj-$(CONFIG_XEN_GRANT_DEV)	+= gntdev/
drivers/xen/gntdev/Makefile +1 -1
Index: head-2007-12-11/drivers/xen/gntdev/Makefile
===================================================================
@@ -1 +1 @@
-obj-y	:= gntdev.o
+obj-$(CONFIG_XEN_GRANT_DEV) := gntdev.o