xref: /openbsd-src/sys/dev/pci/drm/include/asm/hypervisor.h (revision 3374c67d44f9b75b98444cbf63020f777792342e)
1 /* Public domain. */
2 
3 #ifndef _ASM_HYPERVISOR_H
4 #define _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