@@ -63,30 +63,50 @@ __efistub__ctype = _ctype;
63
63
64
64
#define KVM_NVHE_ALIAS (sym ) __kvm_nvhe_##sym = sym;
65
65
66
+ /* Symbols defined in aarch32.c (not yet compiled with nVHE build rules). */
67
+ KVM_NVHE_ALIAS (kvm_skip_instr32 );
68
+
66
69
/* Symbols defined in debug-sr.c (not yet compiled with nVHE build rules). */
70
+ KVM_NVHE_ALIAS (__debug_switch_to_guest );
71
+ KVM_NVHE_ALIAS (__debug_switch_to_host );
67
72
KVM_NVHE_ALIAS (__kvm_get_mdcr_el2 );
68
73
69
74
/* Symbols defined in entry.S (not yet compiled with nVHE build rules). */
75
+ KVM_NVHE_ALIAS (__guest_enter );
70
76
KVM_NVHE_ALIAS (__guest_exit );
71
77
KVM_NVHE_ALIAS (abort_guest_exit_end );
72
78
KVM_NVHE_ALIAS (abort_guest_exit_start );
73
79
74
- /* Symbols defined in switch.c (not yet compiled with nVHE build rules). */
75
- KVM_NVHE_ALIAS (__kvm_vcpu_run_nvhe );
76
- KVM_NVHE_ALIAS (hyp_panic );
80
+ /* Symbols defined in fpsimd.S (not yet compiled with nVHE build rules). */
81
+ KVM_NVHE_ALIAS (__fpsimd_restore_state );
82
+ KVM_NVHE_ALIAS (__fpsimd_save_state );
77
83
78
84
/* Symbols defined in sysreg-sr.c (not yet compiled with nVHE build rules). */
79
85
KVM_NVHE_ALIAS (__kvm_enable_ssbs );
86
+ KVM_NVHE_ALIAS (__sysreg32_restore_state );
87
+ KVM_NVHE_ALIAS (__sysreg32_save_state );
88
+ KVM_NVHE_ALIAS (__sysreg_restore_state_nvhe );
89
+ KVM_NVHE_ALIAS (__sysreg_save_state_nvhe );
80
90
81
91
/* Symbols defined in timer-sr.c (not yet compiled with nVHE build rules). */
82
92
KVM_NVHE_ALIAS (__kvm_timer_set_cntvoff );
93
+ KVM_NVHE_ALIAS (__timer_disable_traps );
94
+ KVM_NVHE_ALIAS (__timer_enable_traps );
95
+
96
+ /* Symbols defined in vgic-v2-cpuif-proxy.c (not yet compiled with nVHE build rules). */
97
+ KVM_NVHE_ALIAS (__vgic_v2_perform_cpuif_access );
83
98
84
99
/* Symbols defined in vgic-v3-sr.c (not yet compiled with nVHE build rules). */
100
+ KVM_NVHE_ALIAS (__vgic_v3_activate_traps );
101
+ KVM_NVHE_ALIAS (__vgic_v3_deactivate_traps );
85
102
KVM_NVHE_ALIAS (__vgic_v3_get_ich_vtr_el2 );
86
103
KVM_NVHE_ALIAS (__vgic_v3_init_lrs );
104
+ KVM_NVHE_ALIAS (__vgic_v3_perform_cpuif_access );
87
105
KVM_NVHE_ALIAS (__vgic_v3_read_vmcr );
88
106
KVM_NVHE_ALIAS (__vgic_v3_restore_aprs );
107
+ KVM_NVHE_ALIAS (__vgic_v3_restore_state );
89
108
KVM_NVHE_ALIAS (__vgic_v3_save_aprs );
109
+ KVM_NVHE_ALIAS (__vgic_v3_save_state );
90
110
KVM_NVHE_ALIAS (__vgic_v3_write_vmcr );
91
111
92
112
/* Alternative callbacks for init-time patching of nVHE hyp code. */
@@ -97,11 +117,13 @@ KVM_NVHE_ALIAS(kvm_update_va_mask);
97
117
/* Global kernel state accessed by nVHE hyp code. */
98
118
KVM_NVHE_ALIAS (arm64_ssbd_callback_required );
99
119
KVM_NVHE_ALIAS (kvm_host_data );
120
+ KVM_NVHE_ALIAS (kvm_vgic_global_state );
100
121
101
122
/* Kernel constant needed to compute idmap addresses. */
102
123
KVM_NVHE_ALIAS (kimage_voffset );
103
124
104
125
/* Kernel symbols used to call panic() from nVHE hyp code (via ERET). */
126
+ KVM_NVHE_ALIAS (__hyp_panic_string );
105
127
KVM_NVHE_ALIAS (panic );
106
128
107
129
/* Vectors installed by hyp-init on reset HVC. */
@@ -118,6 +140,15 @@ KVM_NVHE_ALIAS(arm64_const_caps_ready);
118
140
KVM_NVHE_ALIAS (cpu_hwcap_keys );
119
141
KVM_NVHE_ALIAS (cpu_hwcaps );
120
142
143
+ /* Static keys which are set if a vGIC trap should be handled in hyp. */
144
+ KVM_NVHE_ALIAS (vgic_v2_cpuif_trap );
145
+ KVM_NVHE_ALIAS (vgic_v3_cpuif_trap );
146
+
147
+ /* Static key checked in pmr_sync(). */
148
+ #ifdef CONFIG_ARM64_PSEUDO_NMI
149
+ KVM_NVHE_ALIAS (gic_pmr_sync );
150
+ #endif
151
+
121
152
#endif /* CONFIG_KVM */
122
153
123
154
#endif /* __ARM64_KERNEL_IMAGE_VARS_H */
0 commit comments