git: 9fe5e83e44d6 - stable/13 - x86: Detect NVMM hypervisor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Sep 2024 00:55:43 UTC
The branch stable/13 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=9fe5e83e44d6f7dde23b60ed6e09626d31e5c46a
commit 9fe5e83e44d6f7dde23b60ed6e09626d31e5c46a
Author: Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-08-28 09:31:35 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-04 00:52:30 +0000
x86: Detect NVMM hypervisor
(cherry picked from commit f622dc5daecc5c05504cfc605b6f2d66a3bd90e8)
---
sys/kern/subr_param.c | 1 +
sys/sys/systm.h | 2 +-
sys/x86/x86/identcpu.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index c2672d98ba8d..0ea2279ef2e6 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -162,6 +162,7 @@ static const char *const vm_guest_sysctl_names[] = {
[VM_GUEST_BHYVE] = "bhyve",
[VM_GUEST_VBOX] = "vbox",
[VM_GUEST_PARALLELS] = "parallels",
+ [VM_GUEST_NVMM] = "nvmm",
[VM_LAST] = NULL
};
CTASSERT(nitems(vm_guest_sysctl_names) - 1 == VM_LAST);
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index d073c87af163..ee432fb0d864 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -81,7 +81,7 @@ extern u_long maxphys; /* max raw I/O transfer size */
*/
enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV,
VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_GUEST_VBOX,
- VM_GUEST_PARALLELS, VM_LAST };
+ VM_GUEST_PARALLELS, VM_GUEST_NVMM, VM_LAST };
#endif /* KERNEL */
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
index 992dbb421aa4..8a5d74ca5a2d 100644
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -1388,6 +1388,7 @@ static struct {
{ "KVMKVMKVM", VM_GUEST_KVM }, /* KVM */
{ "bhyve bhyve ", VM_GUEST_BHYVE }, /* bhyve */
{ "VBoxVBoxVBox", VM_GUEST_VBOX }, /* VirtualBox */
+ { "___ NVMM ___", VM_GUEST_NVMM }, /* NVMM */
};
static void