xref: /openbmc/qemu/hw/i386/kvm/xen_overlay.h (revision ad66b5cb)
1 /*
2  * QEMU Xen emulation: Shared/overlay pages 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_OVERLAY_H
13 #define QEMU_XEN_OVERLAY_H
14 
15 void xen_overlay_create(void);
16 
17 int xen_overlay_map_shinfo_page(uint64_t gpa);
18 void *xen_overlay_get_shinfo_ptr(void);
19 
20 int xen_sync_long_mode(void);
21 int xen_set_long_mode(bool long_mode);
22 bool xen_is_long_mode(void);
23 
24 void xen_overlay_do_map_page(MemoryRegion *page, uint64_t gpa);
25 
26 #endif /* QEMU_XEN_OVERLAY_H */
27