2 * Xen HVM emulation support in KVM
4 * Copyright © 2019 Oracle and/or its affiliates. All rights reserved.
5 * Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
12 #ifndef QEMU_SYSEMU_KVM_XEN_H
13 #define QEMU_SYSEMU_KVM_XEN_H
15 /* The KVM API uses these to indicate "no GPA" or "no GFN" */
16 #define INVALID_GPA UINT64_MAX
17 #define INVALID_GFN UINT64_MAX
19 /* QEMU plays the rôle of dom0 for "interdomain" communication. */
22 int kvm_xen_soft_reset(void);
23 uint32_t kvm_xen_get_caps(void);
25 #define kvm_xen_has_cap(cap) (!!(kvm_xen_get_caps() & \
26 KVM_XEN_HVM_CONFIG_ ## cap))
28 #endif /* QEMU_SYSEMU_KVM_XEN_H */