diff options
author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-01-14 02:50:13 +0000 |
---|---|---|
committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-01-14 02:50:13 +0000 |
commit | 69a53a7a3a43d76894958eb76ff015a7f009d047 (patch) | |
tree | 38a21970c3f95a2ff41ebe13ef95eecee1d5525f /sys/x86 | |
parent | 5de888779eea298bb4c489f1fad307c250b13473 (diff) | |
download | src-69a53a7a3a43d76894958eb76ff015a7f009d047.tar.gz src-69a53a7a3a43d76894958eb76ff015a7f009d047.zip |
hyperv: use x86 generic code to do the hypervisor detection
This is first step to move the generic part of HV code into kernel instead
of module, so that it is possible to use hypercall to implement some other
paravirtualization code in the kernel.
Submitted by: Howard Su <howard0su@gmail.com>
Reviewed by: royger, delphij, adrian
Approved by: adrian (mentor)
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D3072
Notes
Notes:
svn path=/head/; revision=293870
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/identcpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c index 38c1c6617c12..bc232a261ce3 100644 --- a/sys/x86/x86/identcpu.c +++ b/sys/x86/x86/identcpu.c @@ -1294,6 +1294,8 @@ identify_hypervisor(void) hv_vendor[12] = '\0'; if (strcmp(hv_vendor, "VMwareVMware") == 0) vm_guest = VM_GUEST_VMWARE; + else if (strcmp(hv_vendor, "Microsoft Hv") == 0) + vm_guest = VM_GUEST_HV; } return; } |