mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
hyperv: Define macro for Hyper-V interface
Suggested by: rpokala MFC after: 1 week Sponsored by: Microsoft OSTC
This commit is contained in:
parent
29b7b56766
commit
083b2c353d
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#define HV_NANOSECONDS_PER_SEC 1000000000L
|
||||
|
||||
#define HYPERV_INTERFACE 0x31237648 /* HV#1 */
|
||||
|
||||
static u_int hv_get_timecount(struct timecounter *tc);
|
||||
|
||||
|
|
@ -416,7 +417,7 @@ hyperv_identify(void)
|
|||
|
||||
op = HV_CPU_ID_FUNCTION_HV_INTERFACE;
|
||||
do_cpuid(op, regs);
|
||||
if (regs[0] != 0x31237648 /* HV#1 */)
|
||||
if (regs[0] != HYPERV_INTERFACE)
|
||||
return (false);
|
||||
|
||||
op = HV_CPU_ID_FUNCTION_MS_HV_FEATURES;
|
||||
|
|
|
|||
Loading…
Reference in a new issue