Page MenuHomeFreeBSD

Intel DMAR: remove parsing of 6-level paging capability
ClosedPublic

Authored by jah on May 1 2023, 4:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 20, 4:01 AM
Unknown Object (File)
Sun, May 3, 5:59 PM
Unknown Object (File)
Wed, Apr 29, 9:58 AM
Unknown Object (File)
Apr 22 2026, 5:23 AM
Unknown Object (File)
Apr 18 2026, 5:21 AM
Unknown Object (File)
Apr 16 2026, 6:34 PM
Unknown Object (File)
Apr 12 2026, 7:02 PM
Unknown Object (File)
Apr 8 2026, 9:51 PM
Subscribers

Details

Summary

Early versions of the VT-d spec mentioned 6-level paging support as a
possible value for the SAGAW capability, but later versions removed it
and SAGAW=0x10 is currently listed as a reserved value.

The 6-level (agaw=64) entry in sagaw_bits is furthermore problematic
with clang15 because the attempted comparison against 1ULL << 64 in
dmar_maxaddr2mgaw() causes the compiler to elide the last iteration
of the initial loop, which bypasses the subsequent logic to find the
greatest HW-supported address width. This results in 5-level paging
always being selected regardless of whether the hardware support it,
which can result address translation failure due to invalid context-
entry programming.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51271
Build 48162: arc lint + arc unit