mirror of
https://github.com/opnsense/src.git
synced 2026-02-25 11:00:15 -05:00
Sponsored by: Serenity Cyber Security, LLC Obtained from: OpenBSD Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42802 (cherry picked from commit 206e9fea7502dccd126a721c30a1675bdef48633)
19 lines
300 B
C
19 lines
300 B
C
/* 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
|