1 /* 2 * QEMU Xen emulation: Grant table support 3 * 4 * Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. 5 * 6 * Authors: David Woodhouse <dwmw2@infradead.org> 7 * 8 * This work is licensed under the terms of the GNU GPL, version 2 or later. 9 * See the COPYING file in the top-level directory. 10 */ 11 12 #ifndef QEMU_XEN_GNTTAB_H 13 #define QEMU_XEN_GNTTAB_H 14 15 void xen_gnttab_create(void); 16 int xen_gnttab_map_page(uint64_t idx, uint64_t gfn); 17 18 struct gnttab_set_version; 19 struct gnttab_get_version; 20 struct gnttab_query_size; 21 int xen_gnttab_set_version_op(struct gnttab_set_version *set); 22 int xen_gnttab_get_version_op(struct gnttab_get_version *get); 23 int xen_gnttab_query_size_op(struct gnttab_query_size *size); 24 25 #endif /* QEMU_XEN_GNTTAB_H */ 26