Page MenuHomeFreeBSD

bhyve: add interface to protect BAR regions of passthru devices
AcceptedPublic

Authored by corvink on May 24 2024, 11:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 12, 10:30 PM
Unknown Object (File)
Mon, Jul 7, 7:10 AM
Unknown Object (File)
Fri, Jul 4, 12:37 AM
Unknown Object (File)
Tue, Jul 1, 8:12 PM
Unknown Object (File)
Sun, Jun 29, 7:18 PM
Unknown Object (File)
Thu, Jun 26, 5:06 AM
Unknown Object (File)
Wed, Jun 25, 11:43 PM
Unknown Object (File)
Thu, Jun 19, 8:24 AM
Subscribers

Details

Reviewers
jhb
markj
Group Reviewers
bhyve
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.Mon, Jun 30, 6:31 PM