sys/dev/smbios/smbios_subr.c is missing the ARM specific vm_pname for Parallels, "Parallels ARM Virtual Machine", so sysctl kern.vm_guest reports "none"
Mark Millard <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
sys/dev/smbios/smbios_subr.c has:
static const struct {
const char *vm_pname;
int vm_guest;
} vm_pnames[] = {
{ "VMware Virtual Platform", VM_GUEST_VMWARE },
{ "Virtual Machine", VM_GUEST_VM }, /* Microsoft VirtualPC */
{ "QEMU Virtual Machine", VM_GUEST_VM },
{ "VirtualBox", VM_GUEST_VBOX },
{ "Parallels Virtual Platform", VM_GUEST_PARALLELS },
{ "KVM", VM_GUEST_KVM },
};
but on an M4 MAX macOS system with FreeBSD under Parallels,
FreeBSD reports:
# kenv smbios.system.product
Parallels ARM Virtual Machine
Thus under aarch64 Parallels FreeBSD reports:
# sysctl kern.vm_guest
kern.vm_guest: none
# sysctl kern.hz
kern.hz: 1000
I wonder if the likes of amd64 Parallels still omits mention of
AMD64 (or whatever text it might use).
===
Mark Millard
marklmi at yahoo.com