Page MenuHomeFreeBSD

bhyvectl: Generalize bhyve IPC code
ClosedPublic

Authored by bnovkov on Jan 11 2026, 1:33 PM.
Tags
None
Referenced Files
F171178235: D54652.id.diff
Wed, Sep 9, 7:02 AM
F171104771: D54652.id184777.diff
Tue, Sep 8, 5:40 PM
F171092544: D54652.diff
Tue, Sep 8, 4:02 PM
F171065116: D54652.id169472.diff
Tue, Sep 8, 12:11 PM
Unknown Object (File)
Sun, Sep 6, 5:51 PM
Unknown Object (File)
Sun, Sep 6, 3:29 PM
Unknown Object (File)
Sun, Sep 6, 8:33 AM
Unknown Object (File)
Sun, Sep 6, 12:46 AM

Details

Reviewers
None
Group Reviewers
bhyve
Commits
rGf49f33ef8c53: bhyvectl: Generalize bhyve IPC code
Summary

Move the nvlist-based bhyve IPC code into a separate function.
No functional change intended.

Diff Detail

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

Event Timeline

if possible, it might be worth splitting the ipc changes outside of hot pluggable stack

think you can land the ipc changes without the hot plugging bits

usr.sbin/bhyvectl/bhyvectl.c
253

if you rename nvl to request and then see my suggestion for lines 278-285

278–285

could use nvlist_xfer() instead of nvlist_send() and nvlist_recv()

declare a nvlist_t *reply and then something like reply = nvlist_xfer(socket_fd, request, 0)

bnovkov marked 2 inline comments as done.

Address @rew 's comments.

usr.sbin/bhyvectl/bhyvectl.c
278–285

Thank you for the suggestion, nvlist_xfer makes things much simpler.

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Aug 23, 12:03 PM
This revision was automatically updated to reflect the committed changes.