OSDN Git Service

spapr: TCG allow up to 8-thread SMT on POWER8 and newer CPUs
[qmiga/qemu.git] / hw / i386 / kvm / xen_gnttab.h
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_reset(void);
17 int xen_gnttab_map_page(uint64_t idx, uint64_t gfn);
18
19 struct gnttab_set_version;
20 struct gnttab_get_version;
21 struct gnttab_query_size;
22 int xen_gnttab_set_version_op(struct gnttab_set_version *set);
23 int xen_gnttab_get_version_op(struct gnttab_get_version *get);
24 int xen_gnttab_query_size_op(struct gnttab_query_size *size);
25
26 #endif /* QEMU_XEN_GNTTAB_H */