xref: /linux/include/uapi/linux/kvm_para.h (revision 3a3bb00d5c73f3ae7833f6534982b5b2f56ac9b4)
1607ca46eSDavid Howells #ifndef _UAPI__LINUX_KVM_PARA_H
2607ca46eSDavid Howells #define _UAPI__LINUX_KVM_PARA_H
3607ca46eSDavid Howells 
4607ca46eSDavid Howells /*
5607ca46eSDavid Howells  * This header file provides a method for making a hypercall to the host
6607ca46eSDavid Howells  * Architectures should define:
7607ca46eSDavid Howells  * - kvm_hypercall0, kvm_hypercall1...
8607ca46eSDavid Howells  * - kvm_arch_para_features
9607ca46eSDavid Howells  * - kvm_para_available
10607ca46eSDavid Howells  */
11607ca46eSDavid Howells 
12607ca46eSDavid Howells /* Return values for hypercalls */
13607ca46eSDavid Howells #define KVM_ENOSYS		1000
14607ca46eSDavid Howells #define KVM_EFAULT		EFAULT
15607ca46eSDavid Howells #define KVM_E2BIG		E2BIG
16607ca46eSDavid Howells #define KVM_EPERM		EPERM
17607ca46eSDavid Howells 
18607ca46eSDavid Howells #define KVM_HC_VAPIC_POLL_IRQ		1
19607ca46eSDavid Howells #define KVM_HC_MMU_OP			2
20607ca46eSDavid Howells #define KVM_HC_FEATURES			3
21607ca46eSDavid Howells #define KVM_HC_PPC_MAP_MAGIC_PAGE	4
22*3a3bb00dSRaghavendra K T #define KVM_HC_KICK_CPU			5
23607ca46eSDavid Howells 
24607ca46eSDavid Howells /*
25607ca46eSDavid Howells  * hypercalls use architecture specific
26607ca46eSDavid Howells  */
27607ca46eSDavid Howells #include <asm/kvm_para.h>
28607ca46eSDavid Howells 
29607ca46eSDavid Howells #endif /* _UAPI__LINUX_KVM_PARA_H */
30