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
F164707031: D45341.id139038.diff
Mon, Aug 3, 7:01 AM
Unknown Object (File)
Sun, Aug 2, 9:19 AM
Unknown Object (File)
Sun, Aug 2, 5:34 AM
Unknown Object (File)
Sun, Aug 2, 4:43 AM
Unknown Object (File)
Sun, Aug 2, 2:33 AM
Unknown Object (File)
Sun, Aug 2, 12:46 AM
Unknown Object (File)
Sat, Aug 1, 8:37 AM
Unknown Object (File)
Thu, Jul 30, 2:25 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