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
Unknown Object (File)
Tue, Mar 17, 12:56 PM
Unknown Object (File)
Tue, Mar 17, 1:09 AM
Unknown Object (File)
Mon, Mar 16, 7:21 PM
Unknown Object (File)
Fri, Mar 13, 2:53 PM
Unknown Object (File)
Mon, Mar 9, 2:06 AM
Unknown Object (File)
Tue, Mar 3, 1:09 AM
Unknown Object (File)
Jan 31 2026, 12:09 AM
Unknown Object (File)
Jan 27 2026, 7:06 AM
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