]> git.ipfire.org Git - thirdparty/qemu.git/commit
xen_backend: add grant table helpers
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 17 May 2018 15:35:51 +0000 (16:35 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 22 May 2018 18:43:21 +0000 (11:43 -0700)
commit9838824affced9e4db01a369dd28c14f694fa9b9
tree20fa01cab7d804cb706849cc76929abac20be725
parent5c0d914a9ba9e0641554d127b62859ac0e954b9e
xen_backend: add grant table helpers

This patch adds grant table helper functions to the xen_backend code to
localize error reporting and use of xen_domid.

The patch also defers the call to xengnttab_open() until just before the
initialise method in XenDevOps is invoked. This method is responsible for
mapping the shared ring. No prior method requires access to the grant table.

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
include/hw/xen/xen_backend.h