Server IP : 104.21.38.3 / Your IP : 172.70.142.47 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142/arch/arm64/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020 Google LLC. * Written by David Brazdil <[email protected]> */ #ifndef __ARM64_HYP_IMAGE_H__ #define __ARM64_HYP_IMAGE_H__ #define __HYP_CONCAT(a, b) a ## b #define HYP_CONCAT(a, b) __HYP_CONCAT(a, b) #ifndef __KVM_NVHE_HYPERVISOR__ /* * KVM nVHE code has its own symbol namespace prefixed with __kvm_nvhe_, * to separate it from the kernel proper. */ #define kvm_nvhe_sym(sym) __kvm_nvhe_##sym #else #define kvm_nvhe_sym(sym) sym #endif #ifdef LINKER_SCRIPT /* * KVM nVHE ELF section names are prefixed with .hyp, to separate them * from the kernel proper. */ #define HYP_SECTION_NAME(NAME) .hyp##NAME /* Symbol defined at the beginning of each hyp section. */ #define HYP_SECTION_SYMBOL_NAME(NAME) \ HYP_CONCAT(__hyp_section_, HYP_SECTION_NAME(NAME)) /* * Helper to generate linker script statements starting a hyp section. * * A symbol with a well-known name is defined at the first byte. This * is used as a base for hyp relocations (see gen-hyprel.c). It must * be defined inside the section so the linker of `vmlinux` cannot * separate it from the section data. */ #define BEGIN_HYP_SECTION(NAME) \ HYP_SECTION_NAME(NAME) : { \ HYP_SECTION_SYMBOL_NAME(NAME) = .; /* Helper to generate linker script statements ending a hyp section. */ #define END_HYP_SECTION \ } /* Defines an ELF hyp section from input section @NAME and its subsections. */ #define HYP_SECTION(NAME) \ BEGIN_HYP_SECTION(NAME) \ *(NAME NAME##.*) \ END_HYP_SECTION /* * Defines a linker script alias of a kernel-proper symbol referenced by * KVM nVHE hyp code. */ #define KVM_NVHE_ALIAS(sym) kvm_nvhe_sym(sym) = sym; /* Defines a linker script alias for KVM nVHE hyp symbols */ #define KVM_NVHE_ALIAS_HYP(first, sec) kvm_nvhe_sym(first) = kvm_nvhe_sym(sec); #endif /* LINKER_SCRIPT */ #endif /* __ARM64_HYP_IMAGE_H__ */