1 /* Public domain. */ 2 3 #ifndef _LINUXKPI_ASM_HYPERVISOR_H 4 #define _LINUXKPI_ASM_HYPERVISOR_H 5 6 #if defined(__i386__) || defined(__amd64__) 7 8 #define X86_HYPER_NATIVE 1 9 #define X86_HYPER_MS_HYPERV 2 10 11 static inline bool 12 hypervisor_is_type(int type) 13 { 14 return (type == X86_HYPER_NATIVE); 15 } 16 17 #endif 18 19 #endif 20