diff options
author | David Vrabel | 2014-12-02 17:13:26 +0100 |
---|---|---|
committer | David Vrabel | 2016-01-07 14:21:53 +0100 |
commit | a4cdb556cae05cd3e7b602b3a44c01420c4e2258 (patch) | |
tree | f21957dcd64da3d2be1a0891b523b8ff46e58d1d /arch/xtensa | |
parent | x86/xen: don't reset vcpu_info on a cancelled suspend (diff) | |
download | kernel-qcow2-linux-a4cdb556cae05cd3e7b602b3a44c01420c4e2258.tar.gz kernel-qcow2-linux-a4cdb556cae05cd3e7b602b3a44c01420c4e2258.tar.xz kernel-qcow2-linux-a4cdb556cae05cd3e7b602b3a44c01420c4e2258.zip |
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>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions