Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2019 15:07:14 +0000 (UTC)
From:      "Stephen J. Kiernan" <stevek@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347972 - head/sys/x86/x86
Message-ID:  <201905191507.x4JF7EvV018578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905191507.x4JF7EvV018578>