]> git.baikalelectronics.ru Git - kernel.git/commit
xen: Introduce shared buffer helpers for page directory...
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 30 Nov 2018 07:42:03 +0000 (09:42 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 18 Dec 2018 17:15:55 +0000 (12:15 -0500)
commit28ac3424c3b7b7521d3267d8cdfb3927f15812a1
tree22047f4cb44f44491497fb9e29ce6d812221652e
parent5c2a27e6703a4779e30a7d6fe879ed43f348a8ea
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>
drivers/xen/Kconfig
drivers/xen/Makefile
drivers/xen/xen-front-pgdir-shbuf.c [new file with mode: 0644]
include/xen/xen-front-pgdir-shbuf.h [new file with mode: 0644]