hypervisor.h 444 B

123456789101112131415161718192021
  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. #ifdef CONFIG_ARM_PKVM_GUEST
  8. void pkvm_init_hyp_services(void);
  9. #else
  10. static inline void pkvm_init_hyp_services(void) { };
  11. #endif
  12. static inline void kvm_arch_init_hyp_services(void)
  13. {
  14. pkvm_init_hyp_services();
  15. };
  16. #endif