aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaul Durrant <paul.durrant@citrix.com>2018-05-15 17:40:53 +0100
committerStefano Stabellini <sstabellini@kernel.org>2018-05-31 12:04:55 -0700
commitd3c49ebbe26b48615e14b8baa88a59cd33761ea6 (patch)
tree6870f8466e12ac41d0999562fdd997bc00e3f995 /configure
parent04a8f72e877b9a912ffd7afa84209909577d1d96 (diff)
downloadqemu-d3c49ebbe26b48615e14b8baa88a59cd33761ea6.zip
qemu-d3c49ebbe26b48615e14b8baa88a59cd33761ea6.tar.gz
qemu-d3c49ebbe26b48615e14b8baa88a59cd33761ea6.tar.bz2
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index a6a4616..be6edc7 100755
--- a/configure
+++ b/configure
@@ -2231,12 +2231,17 @@ EOF
#undef XC_WANT_COMPAT_DEVICEMODEL_API
#define __XEN_TOOLS__
#include <xendevicemodel.h>
+#include <xenforeignmemory.h>
int main(void) {
xendevicemodel_handle *xd;
+ xenforeignmemory_handle *xfmem;
xd = xendevicemodel_open(0, 0);
xendevicemodel_pin_memory_cacheattr(xd, 0, 0, 0, 0);
+ xfmem = xenforeignmemory_open(0, 0);
+ xenforeignmemory_map_resource(xfmem, 0, 0, 0, 0, 0, NULL, 0, 0);
+
return 0;
}
EOF