hypervisor.h 485 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_ARM64_HYPERVISOR_H
  3. #define _ASM_ARM64_HYPERVISOR_H
  4. #include <asm/xen/hypervisor.h>
  5. void kvm_init_hyp_services(void);
  6. bool kvm_arm_hyp_service_available(u32 func_id);
  7. void kvm_arm_target_impl_cpu_init(void);
  8. #ifdef CONFIG_ARM_PKVM_GUEST
  9. void pkvm_init_hyp_services(void);
  10. #else
  11. static inline void pkvm_init_hyp_services(void) { };
  12. #endif
  13. static inline void kvm_arch_init_hyp_services(void)
  14. {
  15. pkvm_init_hyp_services();
  16. };
  17. #endif