Skip to content

Commit

Permalink
xen: Introduce shared buffer helpers for page directory...
Browse files Browse the repository at this point in the history
based frontends. Currently the frontends which implement
similar code for sharing big buffers between frontend and
backend are para-virtualized DRM and sound drivers.
Both define the same way to share grant references of a
data buffer with the corresponding backend with little
differences.

Move shared code into a helper module, so there is a single
implementation of the same functionality for all.

This patch introduces code which is used by sound and display
frontend drivers without functional changes with the intention
to remove shared code from the corresponding drivers.

Signed-off-by: Oleksandr Andrushchenko <[email protected]>
Acked-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
  • Loading branch information
Oleksandr Andrushchenko authored and Boris Ostrovsky committed Dec 18, 2018
1 parent 1669907 commit b338397
Show file tree
Hide file tree
Showing 4 changed files with 646 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,7 @@ config XEN_SYMS
config XEN_HAVE_VPMU
bool

config XEN_FRONT_PGDIR_SHBUF
tristate

endmenu
1 change: 1 addition & 0 deletions drivers/xen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ xen-gntdev-y := gntdev.o
xen-gntdev-$(CONFIG_XEN_GNTDEV_DMABUF) += gntdev-dmabuf.o
xen-gntalloc-y := gntalloc.o
xen-privcmd-y := privcmd.o privcmd-buf.o
obj-$(CONFIG_XEN_FRONT_PGDIR_SHBUF) += xen-front-pgdir-shbuf.o
Loading

0 comments on commit b338397

Please sign in to comment.