6 #define CONFIG_X86_32 1
12 #define CONFIG_X86_64 1
16 #if defined(__i386__) || defined (__x86_64__)
41 #ifndef __LINUX_KVM_PARA_H
42 #define __LINUX_KVM_PARA_H
45 * This header file provides a method for making a hypercall to the host
46 * Architectures should define:
47 * - kvm_hypercall0, kvm_hypercall1...
48 * - kvm_arch_para_features
49 * - kvm_para_available
52 /* Return values for hypercalls */
53 #define KVM_ENOSYS 1000
54 #define KVM_EFAULT EFAULT
55 #define KVM_E2BIG E2BIG
57 #define KVM_HC_VAPIC_POLL_IRQ 1
58 #define KVM_HC_MMU_OP 2
61 * hypercalls use architecture specific
63 #include <asm/kvm_para.h>
66 #ifdef CONFIG_KVM_GUEST
67 void __init
kvm_guest_init(void);
69 #define kvm_guest_init() do { } while (0)
72 static inline int kvm_para_has_feature(unsigned int feature
)
74 if (kvm_arch_para_features() & (1UL << feature
))
78 #endif /* __KERNEL__ */
79 #endif /* __LINUX_KVM_PARA_H */