]> git.proxmox.com Git - mirror_qemu.git/commit
xen_backend: add an emulation of grant copy
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 17 May 2018 15:35:54 +0000 (16:35 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 22 May 2018 18:43:21 +0000 (11:43 -0700)
commit3fe12b8403111021e6eaae3b44d01a34922c176a
treede878ccca498265c92af8d1b004c3f12825b24c1
parent58560f2ae71b99d3032432a4a8457bb2cb21bce1
xen_backend: add an emulation of grant copy

Not all Xen environments support the xengnttab_grant_copy() operation.
E.g. where the OS is FreeBSD or Xen is older than 4.8.0.

This patch introduces an emulation of that operation using
xengnttab_map_domain_grant_refs() and memcpy() for those environments.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen_backend.c