Page MenuHomeFreeBSD

bhyve: add interface to protect BAR regions of passthru devices
ClosedPublic

Authored by corvink on May 24 2024, 11:34 AM.
Tags
None
Referenced Files
F159123745: D45341.diff
Wed, Jun 10, 9:21 AM
Unknown Object (File)
Tue, Jun 9, 11:23 AM
Unknown Object (File)
Mon, Jun 8, 9:07 PM
Unknown Object (File)
Sun, Jun 7, 11:46 PM
Unknown Object (File)
Sun, Jun 7, 11:03 PM
Unknown Object (File)
Mon, Jun 1, 6:35 PM
Unknown Object (File)
Mon, Jun 1, 5:42 AM
Unknown Object (File)
Sun, May 31, 4:54 PM
Subscribers

Details

Summary

We need an interface for protecting BAR regions to make it easier to use this
feature and to make it usable by external emulations like the GVT-d emulation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bhyve/pci_passthru.c
779
usr.sbin/bhyve/pci_passthru.h
57

Again I'm not sure why the vm_* types are appropriate here, bhyve appears to use uint64_t for mmio addresses, so this should be consistent.

  • use uint64_t instead of vm_* types
This revision is now accepted and ready to land.Jun 30 2025, 6:31 PM