svn commit: r347972 - head/sys/x86/x86

Stephen J. Kiernan stevek at FreeBSD.org
Sun May 19 15:07:15 UTC 2019


Author: stevek
Date: Sun May 19 15:07:14 2019
New Revision: 347972
URL: https://svnweb.freebsd.org/changeset/base/347972

Log:
  Add missing setting of hv_base to the leaf that we used.
  Correct setting hv_high to use regs[0], not leaf.

Modified:
  head/sys/x86/x86/identcpu.c

Modified: head/sys/x86/x86/identcpu.c
==============================================================================
--- head/sys/x86/x86/identcpu.c	Sun May 19 12:58:44 2019	(r347971)
+++ head/sys/x86/x86/identcpu.c	Sun May 19 15:07:14 2019	(r347972)
@@ -1382,7 +1382,8 @@ identify_hypervisor_cpuid_base(void)
 			 * and vendor identifier.
 			 */
 			if (vm_guest != VM_GUEST_VM || leaf == 0x40000000) {
-				hv_high = leaf;
+				hv_base = leaf;
+				hv_high = regs[0];
 				((u_int *)&hv_vendor)[0] = regs[1];
 				((u_int *)&hv_vendor)[1] = regs[2];
 				((u_int *)&hv_vendor)[2] = regs[3];


More information about the svn-src-head mailing list