opnsense-src/sys/compat/linuxkpi/common/include/asm/hypervisor.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
300 B
C
Raw Permalink Normal View History

/* Public domain. */
#ifndef _LINUXKPI_ASM_HYPERVISOR_H
#define _LINUXKPI_ASM_HYPERVISOR_H
#if defined(__i386__) || defined(__amd64__)
#define X86_HYPER_NATIVE 1
#define X86_HYPER_MS_HYPERV 2
static inline bool
hypervisor_is_type(int type)
{
return (type == X86_HYPER_NATIVE);
}
#endif
#endif