Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI__LINUX_KVM_PARA_H
0003 #define _UAPI__LINUX_KVM_PARA_H
0004 
0005 /*
0006  * This header file provides a method for making a hypercall to the host
0007  * Architectures should define:
0008  * - kvm_hypercall0, kvm_hypercall1...
0009  * - kvm_arch_para_features
0010  * - kvm_para_available
0011  */
0012 
0013 /* Return values for hypercalls */
0014 #define KVM_ENOSYS      1000
0015 #define KVM_EFAULT      EFAULT
0016 #define KVM_EINVAL      EINVAL
0017 #define KVM_E2BIG       E2BIG
0018 #define KVM_EPERM       EPERM
0019 #define KVM_EOPNOTSUPP      95
0020 
0021 #define KVM_HC_VAPIC_POLL_IRQ       1
0022 #define KVM_HC_MMU_OP           2
0023 #define KVM_HC_FEATURES         3
0024 #define KVM_HC_PPC_MAP_MAGIC_PAGE   4
0025 #define KVM_HC_KICK_CPU         5
0026 #define KVM_HC_MIPS_GET_CLOCK_FREQ  6
0027 #define KVM_HC_MIPS_EXIT_VM     7
0028 #define KVM_HC_MIPS_CONSOLE_OUTPUT  8
0029 #define KVM_HC_CLOCK_PAIRING        9
0030 #define KVM_HC_SEND_IPI     10
0031 #define KVM_HC_SCHED_YIELD      11
0032 #define KVM_HC_MAP_GPA_RANGE        12
0033 
0034 /*
0035  * hypercalls use architecture specific
0036  */
0037 #include <asm/kvm_para.h>
0038 
0039 #endif /* _UAPI__LINUX_KVM_PARA_H */