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)
Thu, Nov 6, 5:45 PM
Unknown Object (File)
Mon, Nov 3, 4:37 PM
Unknown Object (File)
Mon, Nov 3, 2:23 PM
Unknown Object (File)
Sun, Nov 2, 8:07 AM
Unknown Object (File)
Sun, Nov 2, 1:52 AM
Unknown Object (File)
Sat, Nov 1, 8:55 PM
Unknown Object (File)
Sat, Nov 1, 1:05 AM
Unknown Object (File)
Fri, Oct 31, 9:59 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