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)
Tue, Jan 20, 7:01 AM
Unknown Object (File)
Sat, Jan 17, 1:20 PM
Unknown Object (File)
Wed, Jan 14, 12:04 AM
Unknown Object (File)
Dec 9 2025, 3:34 PM
Unknown Object (File)
Dec 3 2025, 12:09 AM
Unknown Object (File)
Nov 14 2025, 9:11 PM
Unknown Object (File)
Oct 21 2025, 1:56 PM
Unknown Object (File)
Oct 21 2025, 1:56 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".