xref: /freebsd-src/sys/compat/linuxkpi/common/include/asm/hypervisor.h (revision 206e9fea7502dccd126a721c30a1675bdef48633)
1*206e9feaSVladimir Kondratyev /* Public domain. */
2*206e9feaSVladimir Kondratyev 
3*206e9feaSVladimir Kondratyev #ifndef _LINUXKPI_ASM_HYPERVISOR_H
4*206e9feaSVladimir Kondratyev #define _LINUXKPI_ASM_HYPERVISOR_H
5*206e9feaSVladimir Kondratyev 
6*206e9feaSVladimir Kondratyev #if defined(__i386__) || defined(__amd64__)
7*206e9feaSVladimir Kondratyev 
8*206e9feaSVladimir Kondratyev #define X86_HYPER_NATIVE	1
9*206e9feaSVladimir Kondratyev #define X86_HYPER_MS_HYPERV	2
10*206e9feaSVladimir Kondratyev 
11*206e9feaSVladimir Kondratyev static inline bool
hypervisor_is_type(int type)12*206e9feaSVladimir Kondratyev hypervisor_is_type(int type)
13*206e9feaSVladimir Kondratyev {
14*206e9feaSVladimir Kondratyev 	return (type == X86_HYPER_NATIVE);
15*206e9feaSVladimir Kondratyev }
16*206e9feaSVladimir Kondratyev 
17*206e9feaSVladimir Kondratyev #endif
18*206e9feaSVladimir Kondratyev 
19*206e9feaSVladimir Kondratyev #endif
20