Add HAXM.

This commit is contained in:
msaitoh 2019-03-24 04:43:54 +00:00
parent 37add47636
commit 925078524d

View File

@ -1,4 +1,4 @@
/* $NetBSD: i386.c,v 1.94 2019/03/22 04:39:02 msaitoh Exp $ */ /* $NetBSD: i386.c,v 1.95 2019/03/24 04:43:54 msaitoh Exp $ */
/*- /*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@ -57,7 +57,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: i386.c,v 1.94 2019/03/22 04:39:02 msaitoh Exp $"); __RCSID("$NetBSD: i386.c,v 1.95 2019/03/24 04:43:54 msaitoh Exp $");
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>
@ -1716,6 +1716,7 @@ cpu_probe_hv_features(struct cpu_info *ci, const char *cpuname)
/* /*
* HV vendor ID string * HV vendor ID string
* ------------+-------------- * ------------+--------------
* HAXM "HAXMHAXMHAXM"
* KVM "KVMKVMKVM" * KVM "KVMKVMKVM"
* Microsoft "Microsoft Hv" * Microsoft "Microsoft Hv"
* QEMU(TCG) "TCGTCGTCGTCG" * QEMU(TCG) "TCGTCGTCGTCG"
@ -1723,7 +1724,9 @@ cpu_probe_hv_features(struct cpu_info *ci, const char *cpuname)
* Xen "XenVMMXenVMM" * Xen "XenVMMXenVMM"
* NetBSD "___ NVMM ___" * NetBSD "___ NVMM ___"
*/ */
if (strncmp(hv_sig, "KVMKVMKVM", 9) == 0) if (strncmp(hv_sig, "HAXMHAXMHAXM", 12) == 0)
hv_name = "HAXM";
else if (strncmp(hv_sig, "KVMKVMKVM", 9) == 0)
hv_name = "KVM"; hv_name = "KVM";
else if (strncmp(hv_sig, "Microsoft Hv", 12) == 0) else if (strncmp(hv_sig, "Microsoft Hv", 12) == 0)
hv_name = "Hyper-V"; hv_name = "Hyper-V";