Skip to main content

Crate vfio_assigned_device

Crate vfio_assigned_device 

Source
Expand description

VFIO-backed PCI device assignment for OpenVMM.

This crate implements a ChipsetDevice that proxies PCI config space and BAR MMIO accesses to a physical device opened via Linux VFIO. The device appears as a standard PCIe endpoint to the guest. MSI-X table and PBA accesses are intercepted and handled by a software emulator; all other BAR MMIO regions are mapped directly into guest GPA space via a MemoryMapper, allowing the guest to access device registers without VM exits. A MemoryMapper is required for VFIO device assignment; mapping failures are fatal.