Skip to content

Commit

Permalink
xen/gntdev: allow usermode to map granted pages
Browse files Browse the repository at this point in the history
The gntdev driver allows usermode to map granted pages from other
domains.  This is typically used to implement a Xen backend driver
in user mode.

Signed-off-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
  • Loading branch information
kraxel authored and konradwilk committed Jan 11, 2011
1 parent f077453 commit ab31523
Show file tree
Hide file tree
Showing 4 changed files with 763 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ config XEN_SYS_HYPERVISOR
virtual environment, /sys/hypervisor will still be present,
but will have no xen contents.

config XEN_GNTDEV
tristate "userspace grant access device driver"
depends on XEN
select MMU_NOTIFIER
help
Allows userspace processes to use grants.

config XEN_PLATFORM_PCI
tristate "xen platform pci device driver"
depends on XEN_PVHVM
Expand Down
2 changes: 2 additions & 0 deletions drivers/xen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o
obj-$(CONFIG_XEN_XENCOMM) += xencomm.o
obj-$(CONFIG_XEN_BALLOON) += balloon.o
obj-$(CONFIG_XEN_DEV_EVTCHN) += xen-evtchn.o
obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o
obj-$(CONFIG_XENFS) += xenfs/
obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o
obj-$(CONFIG_XEN_PLATFORM_PCI) += platform-pci.o
obj-$(CONFIG_SWIOTLB_XEN) += swiotlb-xen.o
obj-$(CONFIG_XEN_DOM0) += pci.o

xen-evtchn-y := evtchn.o
xen-gntdev-y := gntdev.o

Loading

0 comments on commit ab31523

Please sign in to comment.