Add a section to vmm.4 explaining how vmm device file ownership works.
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 69927 Build 66810: arc lint + arc unit
Event Timeline
| share/man/man4/vmm.4 | ||
|---|---|---|
| 85 | Given the changes in D54739, should we perhaps add an explicit disclaimer about PCI passthrough not being supported for unprivileged users? | |
| share/man/man4/vmm.4 | ||
|---|---|---|
| 85 | Yes, that's a good point. I should make passthru_init() print a message when it fails due to lack of permissions. I also realized after the fact that pci_lpc_get_sel() will fail with unprivileged bhyve, but the info it's fetching is available to unprivileged users via PCIOCGETCONF. We should rewrite that code to use PCIOCGETCONF instead. | |
| share/man/man4/vmm.4 | ||
|---|---|---|
| 85 |
wonder if its worth having a block of sanity-checks specific to provide normal users with fine-grained error messages? if (normal_user) is_bhyve_in_monitor_mode() is_passthru_being_requested() is_user_in_vmm_group() I did notice the error message you already have for monitor mode...that was helpful hint when I tested this out
yea, I saw this warning when I tried this out...the review https://reviews.freebsd.org/D39311 that brought the warning in made it sound like a somewhat expected scenario I was gonna look into further it but I'm glad you mentioned the future fix here | |
Modify the PCI PASSTHROUGH section to note that the feature is
unavailable to unprivileged or jailed users.
| share/man/man4/vmm.4 | ||
|---|---|---|
| 67 | You're using Va here but nothing in bhyve.8 | |