Page MenuHomeFreeBSD

bhyve/net_backends: Source file descriptors from nvlists
Needs ReviewPublic

Authored by bnovkov on Sun, Jan 11, 1:33 PM.
Tags
None
Referenced Files
F142725545: D54654.id.diff
Thu, Jan 22, 5:52 PM
Unknown Object (File)
Wed, Jan 21, 4:20 AM
Unknown Object (File)
Tue, Jan 20, 11:29 AM
Unknown Object (File)
Sat, Jan 17, 1:13 AM
Unknown Object (File)
Thu, Jan 15, 11:41 PM
Unknown Object (File)
Thu, Jan 15, 10:19 PM
Unknown Object (File)
Wed, Jan 14, 11:03 PM
Unknown Object (File)
Mon, Jan 12, 7:36 PM
Subscribers

Details

Reviewers
None
Group Reviewers
bhyve
Summary

This change converts all existing network backends to use the
new, hotplug-friendly file descriptor initialization scheme.
Parts of the backend initialization routines that deal with files
have been factored out and moved to libbhyve and made available
to other hotpluggable device using the pci_init_fds routines.
The backend initialization routines now expect their required file
descriptors to be present in the nvlist object.
The configuration parsing routines were also moved and made available
via libbhyve's pci_parse_config routine.

This is a prerequisite for making the e1000 and virtio-net devices
hotpluggable.

While we're here, add additional failure messages in the backend
initialization routines.

Diff Detail

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