Thread (25 messages) 25 messages, 4 authors, 2022-07-29

RE: [PATCH kernel] powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domains

From: "Tian, Kevin" <kevin.tian@intel.com>
Date: 2022-07-08 10:19:54
Also in: kvm

From: Alexey Kardashevskiy <redacted>
Sent: Friday, July 8, 2022 5:46 PM
quoted
quoted
quoted
In general, is "domain" something from hardware or it is a software
concept? Thanks,
'domain' is a software concept to represent the hardware I/O page
table. A blocking domain means all DMAs from a device attached to
this domain are blocked/rejected (equivalent to an empty I/O page
table), usually enforced in the .attach_dev() callback.

Yes, a comment for why having a NULL .attach_dev() is OK is welcomed.

Making it NULL makes __iommu_attach_device() fail, .attach_dev() needs
to return 0 in this crippled environment. Thanks for explaining the
rest, good food for thoughts.
Yeah, that's a typo. 😊
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help