o Add DMAR2IODOM() macro;
o Add IODOM2DMAR() macro.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Basically I want to get rid of all conversion relying on the layout. And add macros for common conversions e.g. from domain to dmar unit etc.
sys/x86/iommu/intel_ctx.c | ||
---|---|---|
180–181 | Can you add CTX2DMARDOM ? | |
181–182 | This expression should be macro-ified as well (domain->dmar unit) | |
sys/x86/iommu/intel_dmar.h | ||
94 | I want this to look like &((domain)->iodom), i.e. stop relying on the dmar_domain layout whre iodom is the first member. | |
95 | And this would be __container_of((iodom), struct dmar_domain, iodom). Unless I mixed arg order. |
Comment Actions
Add macroses:
DMAR2IOMMU()
IOMMU2DMAR()
DOM2IODOM()
IODOM2DOM()
CTX2IOCTX()
IOCTX2CTX()