xref: /openbmc/qemu/target/arm/hvf_arm.h (revision 2b74dd91)
1 /*
2  * QEMU Hypervisor.framework (HVF) support -- ARM specifics
3  *
4  * Copyright (c) 2021 Alexander Graf
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  *
9  */
10 
11 #ifndef QEMU_HVF_ARM_H
12 #define QEMU_HVF_ARM_H
13 
14 #include "cpu.h"
15 
16 /**
17  * hvf_arm_init_debug() - initialize guest debug capabilities
18  *
19  * Should be called only once before using guest debug capabilities.
20  */
21 void hvf_arm_init_debug(void);
22 
23 void hvf_arm_set_cpu_features_from_host(ARMCPU *cpu);
24 
25 #ifdef CONFIG_HVF
26 
27 uint32_t hvf_arm_get_default_ipa_bit_size(void);
28 uint32_t hvf_arm_get_max_ipa_bit_size(void);
29 
30 #else
31 
32 static inline uint32_t hvf_arm_get_default_ipa_bit_size(void)
33 {
34     return 0;
35 }
36 
37 static inline uint32_t hvf_arm_get_max_ipa_bit_size(void)
38 {
39     return 0;
40 }
41 
42 #endif
43 
44 #endif
45