Page MenuHomeFreeBSD

bhyve: trap protected BAR regions of passthru devices
Needs ReviewPublic

Authored by corvink on Fri, May 24, 11:34 AM.

Details

Reviewers
jhb
markj
Group Reviewers
bhyve
Summary

At the moment, the list of protected BAR regions is unused by the passthru
emulation. Make use of it when mapping the BAR regions. This causes bhyve to
trap those regions.

Diff Detail

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

Event Timeline

usr.sbin/bhyve/pci_passthru.c
1270–1271

Have you tried using tools/build/checkstyle9.pl?

1300
corvink added inline comments.
usr.sbin/bhyve/pci_passthru.c
1270–1271

Wasn't aware of this helper tool. I'm always using the top level .clang-format. Unfortunately, it seems to be incorrect for some cases.