Skip to content

Commit b338397

Browse files
Oleksandr AndrushchenkoBoris Ostrovsky
authored andcommitted
xen: Introduce shared buffer helpers for page directory...
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 <oleksandr_andrushchenko@epam.com> Acked-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
1 parent 1669907 commit b338397

File tree

4 files changed

+646
-0
lines changed

4 files changed

+646
-0
lines changed

drivers/xen/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,7 @@ config XEN_SYMS
340340
config XEN_HAVE_VPMU
341341
bool
342342

343+
config XEN_FRONT_PGDIR_SHBUF
344+
tristate
345+
343346
endmenu

drivers/xen/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ xen-gntdev-y := gntdev.o
4444
xen-gntdev-$(CONFIG_XEN_GNTDEV_DMABUF) += gntdev-dmabuf.o
4545
xen-gntalloc-y := gntalloc.o
4646
xen-privcmd-y := privcmd.o privcmd-buf.o
47+
obj-$(CONFIG_XEN_FRONT_PGDIR_SHBUF) += xen-front-pgdir-shbuf.o

0 commit comments

Comments
 (0)