Bug 223837

Summary: vmm/amd: IVHD entries are not applied to the device table
Product: Base System Reporter: Andriy Gapon <avg>
Component: kernAssignee: freebsd-virtualization mailing list <virtualization>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description Andriy Gapon freebsd_committer 2017-11-24 09:05:46 UTC
The AMD-Vi support code does parse IVHD entries in IVRS table.
The entries are stored in softc->dev_cfg[] of the ivhd driver.
But that information is never applied to a device table.
For instance, see tables 92, 93, 94 in the AMD IOMMU specification.  Those define the location of the DTE setting field in 4-byte IVHD entries and the meaning of bits in it.  And then see table 7 on how those bits should be translated to bits in an actual Device Table Entry corresponding to a device described in the IVHD entry.