]> xenbits.xensource.com Git - people/royger/xen.git/commit
tools/libxenctrl: use new xenforeignmemory API to seed grant table
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 9 Aug 2018 09:59:41 +0000 (10:59 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Aug 2018 12:27:24 +0000 (13:27 +0100)
commita2d9a6fa1fcd2dfcfa9d1d34998156f9399a3eb2
tree0f72a8a3909d2bbf3dfac4aa6e89f81e1b39c97c
parent83fa6552cea112a900ec7891f8c170d022fe7e20
tools/libxenctrl: use new xenforeignmemory API to seed grant table

A previous patch added support for priv-mapping guest resources directly
(rather than having to foreign-map, which requires P2M modification for
HVM guests).

This patch makes use of the new API to seed the guest grant table unless
the underlying infrastructure (i.e. privcmd) doesn't support it, in which
case the old scheme is used.

NOTE: The call to xc_dom_gnttab_hvm_seed() in hvm_build_set_params() was
      actually unnecessary, as the grant table has already been seeded
      by a prior call to xc_dom_gnttab_init() made by libxl__build_dom().

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_boot.c
tools/libxc/xc_sr_restore_x86_hvm.c
tools/libxc/xc_sr_restore_x86_pv.c
tools/libxl/libxl_dom.c
tools/python/xen/lowlevel/xc/xc.c