Skip to content
Permalink
Browse files

Merge branch 'bhyve' of https://github.com/citrus-it/cpuid

  • Loading branch information...
tycho committed Mar 12, 2018
2 parents a803f29 + 47f01ee commit c81e407e55ac11d331c6b2e4d2b58b99f370c63c
Showing with 4 additions and 0 deletions.
  1. +3 −0 handlers.c
  2. +1 −0 vendor.h
@@ -1647,6 +1647,9 @@ static void handle_vmm_base(struct cpu_regs_t *regs, struct cpuid_state_t *state
} else if (strcmp(buf, " lrpepyh vr") == 0) {
state->vendor |= VENDOR_HV_PARALLELS;
printf("Parallels Desktop detected\n\n");
} else if (strcmp(buf, "bhyve bhyve ") == 0) {
state->vendor |= VENDOR_HV_BHYVE;
printf("BHYVE hypervisor detected\n\n");
}
}

@@ -34,6 +34,7 @@ typedef enum
VENDOR_HV_KVM = 0x40,
VENDOR_HV_HYPERV = 0x80,
VENDOR_HV_PARALLELS = 0x100,
VENDOR_HV_BHYVE = 0x200,
VENDOR_ANY = (int)-1
} cpu_vendor_t;

0 comments on commit c81e407

Please sign in to comment.
You can’t perform that action at this time.