Page MenuHomeFreeBSD

bhyve: Introduce monitor mode
Needs ReviewPublic

Authored by bnovkov on Thu, Nov 13, 11:13 AM.
Tags
None
Referenced Files
F136164046: D53731.id.diff
Sun, Nov 16, 8:25 AM
F136164031: D53731.id166353.diff
Sun, Nov 16, 8:25 AM
F136164029: D53731.diff
Sun, Nov 16, 8:25 AM
Unknown Object (File)
Fri, Nov 14, 3:55 PM
Unknown Object (File)
Fri, Nov 14, 3:55 PM
Unknown Object (File)
Fri, Nov 14, 3:48 PM
Unknown Object (File)
Fri, Nov 14, 1:13 AM
Unknown Object (File)
Thu, Nov 13, 10:40 PM

Details

Reviewers
markj
andrew
Group Reviewers
bhyve
Summary

This change introduces "monitor mode", a mechanism for automatically
releasing virtual machine resources when bhyve dies, bringing us
closer towards making non-root bhyve viable.
Under this regime bhyve will create a transient virtual machine using
vmmctl's VMMCTL_CREATE_DESTROY_ON_CLOSE flag and automatically
reboot said virtual machine as long as it exits with "reboot" status.

This is done by splitting bhyve into two processes. The parent process
creates the virtual machine while the child process initializes and
runs the virtual machine. When the child exits the parent inspects
its exit status and either exits or forks again. vmmctl automatically
destroys the underlying virtual machine once the parent process dies.

Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.

Diff Detail

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