]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 331466:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Apr 2018 00:11:02 +0000 (00:11 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 19 Apr 2018 00:11:02 +0000 (00:11 +0000)
commit7d7e58a8209bff42fc6f3b5cb97df3f03d5eaf3c
tree31aa8988a00560f64ab1607e58bd01edb8d4cdaa
parentba90c197a0e0f8c0983773b9942b9564a395a1b8
MFC 331466:
Add a workaround to the hypervisor detection for older versions of KVM.

Originally KVM set %eax to 0 in the cpuid leaf 0x4000000 rather than
to the highest supported leaf in the hypervisor "branch".  Detect this
case and fixup the %eax value so that the hypervisor is still
detected.

git-svn-id: svn://svn.freebsd.org/base/stable/10@332743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/x86/x86/identcpu.c