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)
Tue, Sep 30, 12:18 PM
Unknown Object (File)
Mon, Sep 29, 11:34 AM
Unknown Object (File)
Sun, Sep 28, 5:01 AM
Unknown Object (File)
Sep 13 2025, 8:06 AM
Unknown Object (File)
Sep 11 2025, 6:06 AM
Unknown Object (File)
Sep 6 2025, 8:07 AM
Unknown Object (File)
Sep 6 2025, 1:59 AM
Unknown Object (File)
Sep 4 2025, 10:34 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