xen-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages
commitd3c49ebbe26b48615e14b8baa88a59cd33761ea6
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 15 May 2018 16:40:53 +0000 (15 17:40 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 31 May 2018 19:04:55 +0000 (31 12:04 -0700)
tree6870f8466e12ac41d0999562fdd997bc00e3f995
parent04a8f72e877b9a912ffd7afa84209909577d1d96
xen-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages

Xen 4.11 has a new API to directly map guest resources. Among the resources
that can be mapped using this API are ioreq pages.

This patch modifies QEMU to attempt to use the new API should it exist,
falling back to the previous mechanism if it is unavailable.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
configure
hw/i386/xen/trace-events
hw/i386/xen/xen-hvm.c
include/hw/xen/xen_common.h