Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 01:32:54 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347639 - head/sys/x86/x86
Message-ID:  <201905160132.x4G1Wsv6096483@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Thu May 16 01:32:54 2019
New Revision: 347639
URL: https://svnweb.freebsd.org/changeset/base/347639

Log:
  x86: Correctly identify bhyve hypervisor
  
  Spotted after a similar report by Olivier Cochard-Labbé.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: head/sys/x86/x86/identcpu.c
==============================================================================
--- head/sys/x86/x86/identcpu.c	Thu May 16 01:09:13 2019	(r347638)
+++ head/sys/x86/x86/identcpu.c	Thu May 16 01:32:54 2019	(r347639)
@@ -1365,7 +1365,7 @@ identify_hypervisor(void)
 				vm_guest = VM_GUEST_HV;
 			else if (strcmp(hv_vendor, "KVMKVMKVM") == 0)
 				vm_guest = VM_GUEST_KVM;
-			else if (strcmp(hv_vendor, "bhyve bhyve") == 0)
+			else if (strcmp(hv_vendor, "bhyve bhyve ") == 0)
 				vm_guest = VM_GUEST_BHYVE;
 		}
 		return;



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