]>
Commit | Line | Data |
---|---|---|
61491cf4 DW |
1 | /* |
2 | * Xen HVM emulation support in KVM | |
3 | * | |
4 | * Copyright © 2019 Oracle and/or its affiliates. All rights reserved. | |
5 | * Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
6 | * | |
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. | |
9 | * | |
10 | */ | |
11 | ||
12 | #ifndef QEMU_SYSEMU_KVM_XEN_H | |
13 | #define QEMU_SYSEMU_KVM_XEN_H | |
14 | ||
79b7067d | 15 | int kvm_xen_soft_reset(void); |
61491cf4 DW |
16 | uint32_t kvm_xen_get_caps(void); |
17 | ||
18 | #define kvm_xen_has_cap(cap) (!!(kvm_xen_get_caps() & \ | |
19 | KVM_XEN_HVM_CONFIG_ ## cap)) | |
20 | ||
21 | #endif /* QEMU_SYSEMU_KVM_XEN_H */ |