Page MenuHomeFreeBSD

bhyve: trap protected BAR regions of passthru devices
Needs ReviewPublic

Authored by corvink on May 24 2024, 11:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 10:56 PM
Unknown Object (File)
Sat, Nov 9, 10:29 AM
Unknown Object (File)
Wed, Oct 30, 1:47 AM
Unknown Object (File)
Thu, Oct 17, 1:43 PM
Unknown Object (File)
Wed, Oct 16, 6:28 PM
Unknown Object (File)
Tue, Oct 15, 9:47 PM
Unknown Object (File)
Tue, Oct 15, 4:17 AM
Unknown Object (File)
Tue, Oct 15, 1:04 AM
Subscribers

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.