This is more intuitive than having to run pciconf -lv and figure out
the bus/slot/func entry manually.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 55198 Build 52087: arc lint + arc unit
Event Timeline
share/examples/bhyve/vmrun.sh | ||
---|---|---|
90–91 | The example is indeed incorrect, as the driver would have to be detached first. bhyve works by passing it a ppt driver, so none (although the script will still be able to fetch its bus/slot/func) isn't supposed to be used either. https://wiki.freebsd.org/bhyve/pci_passthru The example should say ppt0 instead of ehci0. |
share/examples/bhyve/vmrun.sh | ||
---|---|---|
358 | I'll fix this in another commit because there are multiple other instances of this. |
share/examples/bhyve/vmrun.sh | ||
---|---|---|
356 | Sorry, I meant to write pciconf -l $pass| awk -F: '{print $2"/"$3"/"$4}'. I'd also name the variable something more accurate, maybe "bsl" (bus slot function). |
share/examples/bhyve/vmrun.sh | ||
---|---|---|
356 | Don't we need to preserve the domain as well? |
No comma after "descriptor" here. (This might be due to phabricator "helping" by mixing up diffs. I'll try to include some context to make this easier.)
38 the file descriptor will be written to it.