Move the nvlist-based bhyve IPC code into a separate function.
No functional change intended.
Details
Details
- Reviewers
- None
- Group Reviewers
bhyve - Commits
- rGf49f33ef8c53: bhyvectl: Generalize bhyve IPC code
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
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 | ||
|---|---|---|
| 257–258 | if you rename nvl to request and then see my suggestion for lines 278-285 | |
| 290–305 | 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) | |