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
F157204666: D45341.diff
Tue, May 19, 7:41 AM
F157203970: D45341.diff
Tue, May 19, 7:37 AM
Unknown Object (File)
Sun, May 17, 7:36 AM
Unknown Object (File)
Fri, May 15, 1:39 PM
Unknown Object (File)
Fri, May 15, 1:14 PM
Unknown Object (File)
Fri, May 15, 1:29 AM
Unknown Object (File)
Thu, May 14, 11:03 PM
Unknown Object (File)
Thu, May 14, 7:53 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