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
F168401216: D45341.id156885.diff
Fri, Aug 28, 1:35 AM
F168398264: D45341.id157702.diff
Fri, Aug 28, 12:57 AM
F168315578: D45341.diff
Thu, Aug 27, 2:28 PM
Unknown Object (File)
Wed, Aug 12, 6:20 PM
Unknown Object (File)
Mon, Aug 10, 10:54 AM
Unknown Object (File)
Mon, Aug 10, 10:54 AM
Unknown Object (File)
Mon, Aug 10, 10:54 AM
Unknown Object (File)
Mon, Aug 10, 10:53 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65116
Build 61999: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/pci_passthru.c
778
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