WSL2-Linux-Kernel/include/uapi/xen
David Vrabel a4cdb556ca xen/gntdev: add ioctl for grant copy
Add IOCTL_GNTDEV_GRANT_COPY to allow applications to copy between user
space buffers and grant references.

This interface is similar to the GNTTABOP_copy hypercall ABI except
the local buffers are provided using a virtual address (instead of a
GFN and offset).  To avoid userspace from having to page align its
buffers the driver will use two or more ops if required.

If the ioctl returns 0, the application must check the status of each
segment with the segments status field.  If the ioctl returns a -ve
error code (EINVAL or EFAULT), the status of individual ops is
undefined.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2016-01-07 13:21:53 +00:00
..
Kbuild xen: install xen/gntdev.h and xen/gntalloc.h 2014-02-11 10:12:36 -05:00
evtchn.h UAPI: (Scripted) Disintegrate include/xen 2012-10-09 09:49:15 +01:00
gntalloc.h xen/gntalloc: use types from linux/types.h in userspace headers 2015-10-23 14:20:44 +01:00
gntdev.h xen/gntdev: add ioctl for grant copy 2016-01-07 13:21:53 +00:00
privcmd.h xen/privcmd: Further s/MFN/GFN/ clean-up 2015-09-08 18:03:54 +01:00