image-vars.h (29e8910a566aad3ee72f729e45842858d51ced8d) | image-vars.h (ce492a16ffb8814d9651c3fdafc363bfa1b01189) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Linker script variables to be set after section resolution, as 4 * ld.lld does not like variables assigned before SECTIONS is processed. 5 */ 6#ifndef __ARM64_KERNEL_IMAGE_VARS_H 7#define __ARM64_KERNEL_IMAGE_VARS_H 8 --- 47 unchanged lines hidden (view full) --- 56/* 57 * KVM nVHE code has its own symbol namespace prefixed with __kvm_nvhe_, to 58 * separate it from the kernel proper. The following symbols are legally 59 * accessed by it, therefore provide aliases to make them linkable. 60 * Do not include symbols which may not be safely accessed under hypervisor 61 * memory mappings. 62 */ 63 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Linker script variables to be set after section resolution, as 4 * ld.lld does not like variables assigned before SECTIONS is processed. 5 */ 6#ifndef __ARM64_KERNEL_IMAGE_VARS_H 7#define __ARM64_KERNEL_IMAGE_VARS_H 8 --- 47 unchanged lines hidden (view full) --- 56/* 57 * KVM nVHE code has its own symbol namespace prefixed with __kvm_nvhe_, to 58 * separate it from the kernel proper. The following symbols are legally 59 * accessed by it, therefore provide aliases to make them linkable. 60 * Do not include symbols which may not be safely accessed under hypervisor 61 * memory mappings. 62 */ 63 |
64#define KVM_NVHE_ALIAS(sym) __kvm_nvhe_##sym = sym; 65 | |
66/* Alternative callbacks for init-time patching of nVHE hyp code. */ | 64/* Alternative callbacks for init-time patching of nVHE hyp code. */ |
65KVM_NVHE_ALIAS(arm64_enable_wa2_handling); |
|
67KVM_NVHE_ALIAS(kvm_patch_vector_branch); 68KVM_NVHE_ALIAS(kvm_update_va_mask); 69 70/* Global kernel state accessed by nVHE hyp code. */ | 66KVM_NVHE_ALIAS(kvm_patch_vector_branch); 67KVM_NVHE_ALIAS(kvm_update_va_mask); 68 69/* Global kernel state accessed by nVHE hyp code. */ |
70KVM_NVHE_ALIAS(arm64_ssbd_callback_required); |
|
71KVM_NVHE_ALIAS(kvm_host_data); 72KVM_NVHE_ALIAS(kvm_vgic_global_state); 73 74/* Kernel constant needed to compute idmap addresses. */ 75KVM_NVHE_ALIAS(kimage_voffset); 76 77/* Kernel symbols used to call panic() from nVHE hyp code (via ERET). */ 78KVM_NVHE_ALIAS(__hyp_panic_string); --- 32 unchanged lines hidden --- | 71KVM_NVHE_ALIAS(kvm_host_data); 72KVM_NVHE_ALIAS(kvm_vgic_global_state); 73 74/* Kernel constant needed to compute idmap addresses. */ 75KVM_NVHE_ALIAS(kimage_voffset); 76 77/* Kernel symbols used to call panic() from nVHE hyp code (via ERET). */ 78KVM_NVHE_ALIAS(__hyp_panic_string); --- 32 unchanged lines hidden --- |