Page MenuHomeFreeBSD

devd: Add vm_guest variable
Needs ReviewPublic

Authored by imp on Jul 19 2025, 5:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 4:50 PM
Unknown Object (File)
Thu, Jun 4, 5:42 AM
Unknown Object (File)
May 14 2026, 1:45 AM
Unknown Object (File)
May 14 2026, 1:44 AM
Unknown Object (File)
May 13 2026, 11:37 PM
Unknown Object (File)
May 13 2026, 11:02 PM
Unknown Object (File)
May 13 2026, 10:50 PM
Unknown Object (File)
May 13 2026, 10:32 PM
Subscribers

Details

Summary

Fetch vm_guest on startup in case we're running in a jail.

PR: 287873
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65578
Build 62461: arc lint + arc unit

Event Timeline

imp requested review of this revision.Jul 19 2025, 5:33 AM

The commit message says "jail". But kern.vm_guest doesn't change in a jail. Did you mean to say "in a VM"?

The commit message says "jail". But kern.vm_guest doesn't change in a jail. Did you mean to say "in a VM"?

yea. I gotta update that, and for the bug number and likely to set the author. I just ,cleaned uo the code from the pr. I was initially confused about the jail vs vm thing amd didn't update the comment once I'd sorted that out.

sbin/devd/devd.cc
1357

I've just noticed my patch has a mistake in this devdlog(), it should print "sysctlbyname" instead of "sysctlnametomib".