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
F143587453: D45341.diff
Sat, Jan 31, 12:09 AM
Unknown Object (File)
Tue, Jan 27, 7:06 AM
Unknown Object (File)
Sun, Jan 25, 2:38 PM
Unknown Object (File)
Sun, Jan 25, 2:05 AM
Unknown Object (File)
Fri, Jan 16, 10:08 AM
Unknown Object (File)
Fri, Jan 16, 1:04 AM
Unknown Object (File)
Thu, Jan 15, 7:52 PM
Unknown Object (File)
Wed, Jan 14, 8:24 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