vfio_file_enforced_coherent(9)
β¨ vfio_file_enforced_coherent β¨
okay bestie, welcome to the Kernel API Manual entry for vfio_file_enforced_coherent β yes that's a whole mouthful, yes it's giving main character energy, and yes we're gonna get through it together π«Ά
π NAME π
vfio_file_enforced_coherent β returns true if the DMA associated with the VFIO file is always CPU cache coherent π
like, always always. no cap.
πΈ SYNOPSIS πΈ
bool vfio_file_enforced_coherent (struct file *file );
that's it. one function, one argument, returns a bool. iconic behavior honestly β¨
π ARGUMENTS π
fileβ a VFIO group file or a VFIO device file π¦ (either one works, she's flexible like that)
π§ DESCRIPTION π§
so what does "enforced coherency" even mean, you ask? bestie, I'm so glad you did π
Enforced coherency means the IOMMU ignores things like the PCIe no-snoop bit in DMA transactions. like, it literally does not care, it's above all that drama π
A return of false indicates that the user has rights to access additional instructions such as wbinvd on x86 π
β οΈ lowkey important: false here isn't just "nope, not coherent" β it's telling you the user has extra instruction access. read the return value carefully, bestie, it's carrying a lot of lore π
π₯ SEE ALSO π₯
- Kernel file
./drivers/vfio/vfio_main.c vfio_file_is_valid(9)vfio_file_set_kvm(9)
go read those next, iykyk π
and that's the whole page, periodt π
this was vfio_file_enforced_coherent(9) from the Kernel API Manual, sourced from ./drivers/vfio, dated October 2026 β mwah, go touch some DMA transactions ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms