Bug 223837 - vmm/amd: IVHD entries are not applied to the device table
Summary: vmm/amd: IVHD entries are not applied to the device table
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-24 09:05 UTC by Andriy Gapon
Modified: 2017-11-24 09:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Gapon freebsd_committer freebsd_triage 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.