Skip to content

x86/vtd: Removal of unnecessary abstractions

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/vtd: Don't include control register state in the table pointersxen/drivers/passthrough/vtd/intremap.c xen/drivers/passthrough/vtd/qinval.c xen/drivers/passthrough/vtd/utils.c+14 -123 replies
2/6x86/vtd: Rename struct iommu to vtd_iommuxen/drivers/passthrough/vtd/dmar.c xen/drivers/passthrough/vtd/dmar.h xen/drivers/passthrough/vtd/extern.h +7 more+106 -1062 replies
3/6x86/vtd: Drop struct qi_ctrlxen/drivers/passthrough/vtd/iommu.h xen/drivers/passthrough/vtd/qinval.c+20 -355 replies
4/6x86/vtd: Drop struct ir_ctrlxen/drivers/passthrough/vtd/intremap.c xen/drivers/passthrough/vtd/iommu.c xen/drivers/passthrough/vtd/iommu.h +1 more+52 -703 replies
5/6x86/vtd: Drop struct iommu_flushxen/drivers/passthrough/vtd/iommu.c xen/drivers/passthrough/vtd/iommu.h xen/drivers/passthrough/vtd/qinval.c+44 -632 replies
6/6x86/vtd: Drop struct intel_iommuxen/drivers/passthrough/vtd/iommu.c xen/drivers/passthrough/vtd/iommu.h xen/drivers/passthrough/vtd/quirks.c +1 more+10 -402 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchJan BeulichKevin Tian
1/6R-b A-b
2/6A-b
3/6A-b
4/6
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] x86/vtd: Removal of unnecessary abstractions

Patch 1 of this series was XSA-283 before people pointed out that I'd got my maths wrong. The rest of the series was the work I was doing at the time, to try and clean up the IOMMU code.

This series comes with a net bloat-o-meter reduction of -536, a reduction in code volume, runtime memory usage, and has no practical change in behaviour.

Andrew Cooper (6):
x86/vtd: Don't include control register state in the table pointers x86/vtd: Rename struct iommu to vtd_iommu
x86/vtd: Drop struct qi_ctrl
x86/vtd: Drop struct ir_ctrl
x86/vtd: Drop struct iommu_flush
x86/vtd: Drop struct intel_iommu

 xen/drivers/passthrough/vtd/dmar.c     |   6 +-
 xen/drivers/passthrough/vtd/dmar.h     |   4 +-
 xen/drivers/passthrough/vtd/extern.h   |  36 +++----
 xen/drivers/passthrough/vtd/intremap.c | 127 ++++++++++++-------------
 xen/drivers/passthrough/vtd/iommu.c    | 168 ++++++++++++++-------------------
 xen/drivers/passthrough/vtd/iommu.h    |  61 ++++--------
 xen/drivers/passthrough/vtd/qinval.c   |  99 +++++++++----------
 xen/drivers/passthrough/vtd/quirks.c   |  19 ++--
 xen/drivers/passthrough/vtd/utils.c    |  28 +++---
 xen/drivers/passthrough/vtd/x86/ats.c  |   6 +-
 10 files changed, 237 insertions(+), 317 deletions(-)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel