Bug 258550 - kern.vm_guest not reported on Aarch64
Summary: kern.vm_guest not reported on Aarch64
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Some People
Assignee: Andrew Turner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-16 23:11 UTC by Vincent Milum Jr
Modified: 2023-11-03 21:15 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Milum Jr 2021-09-16 23:11:07 UTC
vm_guest is never set on Aarch64, tested on ESXi ARM Fling

sysctl kern.vm_guest
kern.vm_guest: none

---

On AMD64 using ESXi, we have

sysctl kern.vm_guest
kern.vm_guest: vmware

---

Comparing these two files, there is no reference to vm_guest on Aarch64

https://github.com/freebsd/freebsd-src/blob/main/sys/x86/x86/identcpu.c
https://github.com/freebsd/freebsd-src/blob/main/sys/arm64/arm64/identcpu.c
Comment 1 Andrew Turner freebsd_committer freebsd_triage 2021-11-15 15:59:11 UTC
I have a fix for this, but it modes code from sys/x86/x86/identcpu.c to a new file. I'd like to use this to clean up the license on this code while I'm here to not add a new 4 clause file & to clean up the copyright lines.
Comment 2 Gordon Tetlow freebsd_committer freebsd_triage 2023-11-03 21:15:03 UTC
Just found this as well. Any chance of getting this fixed?