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)
Tue, Dec 3, 12:30 AM
Unknown Object (File)
Tue, Nov 26, 5:23 PM
Unknown Object (File)
Mon, Nov 25, 10:39 AM
Unknown Object (File)
Sun, Nov 24, 7:05 PM
Unknown Object (File)
Sun, Nov 24, 8:01 AM
Unknown Object (File)
Sun, Nov 24, 3:53 AM
Unknown Object (File)
Sat, Nov 23, 4:10 PM
Unknown Object (File)
Fri, Nov 22, 7:26 PM
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 57896
Build 54784: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/pci_passthru.c
1270

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

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

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.