2022-12-16 16:50:26 +01:00
|
|
|
/*
|
|
|
|
* QEMU Xen emulation: Grant table support
|
|
|
|
*
|
|
|
|
* Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Authors: David Woodhouse <dwmw2@infradead.org>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QEMU_XEN_GNTTAB_H
|
|
|
|
#define QEMU_XEN_GNTTAB_H
|
|
|
|
|
|
|
|
void xen_gnttab_create(void);
|
2023-01-10 02:09:04 +01:00
|
|
|
int xen_gnttab_reset(void);
|
2022-12-16 16:50:26 +01:00
|
|
|
int xen_gnttab_map_page(uint64_t idx, uint64_t gfn);
|
|
|
|
|
2022-12-17 00:40:57 +01:00
|
|
|
struct gnttab_set_version;
|
|
|
|
struct gnttab_get_version;
|
2022-12-17 00:49:48 +01:00
|
|
|
struct gnttab_query_size;
|
2022-12-17 00:40:57 +01:00
|
|
|
int xen_gnttab_set_version_op(struct gnttab_set_version *set);
|
|
|
|
int xen_gnttab_get_version_op(struct gnttab_get_version *get);
|
2022-12-17 00:49:48 +01:00
|
|
|
int xen_gnttab_query_size_op(struct gnttab_query_size *size);
|
2022-12-17 00:40:57 +01:00
|
|
|
|
2022-12-16 16:50:26 +01:00
|
|
|
#endif /* QEMU_XEN_GNTTAB_H */
|