mbox series

[0/4] AMD/IOMMU: Cleanup

Message ID 20200203144340.4614-1-andrew.cooper3@citrix.com (mailing list archive)
Headers show
Series AMD/IOMMU: Cleanup | expand

Message

Andrew Cooper Feb. 3, 2020, 2:43 p.m. UTC
Various bits of cleanup without any major functional change.  The eventual
plan is to purge the {get,set}_field_{from,in}_u32() helpers, which are
responsible for very hard to follow code, and poor code generation.

Andrew Cooper (4):
  AMD/IOMMU: Move headers to be local
  AMD/IOMMU: Delete iommu_{get,set,clear}_bit() helpers
  AMD/IOMMU: Treat guest head/tail pointers as byte offsets
  AMD/IOMMU: Treat head/tail pointers as byte offsets

 xen/arch/x86/mm/p2m.c                              |   1 -
 .../passthrough/amd/iommu-defs.h}                  |  41 ++--
 .../passthrough/amd/iommu.h}                       | 206 +++++++++++++++++----
 xen/drivers/passthrough/amd/iommu_acpi.c           |   7 +-
 xen/drivers/passthrough/amd/iommu_cmd.c            |  32 ++--
 xen/drivers/passthrough/amd/iommu_detect.c         |   7 +-
 xen/drivers/passthrough/amd/iommu_guest.c          | 132 ++++++-------
 xen/drivers/passthrough/amd/iommu_init.c           |  64 +++----
 xen/drivers/passthrough/amd/iommu_intr.c           |   9 +-
 xen/drivers/passthrough/amd/iommu_map.c            |   8 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c        |   9 +-
 xen/include/asm-x86/amd-iommu.h                    | 190 -------------------
 12 files changed, 298 insertions(+), 408 deletions(-)
 rename xen/{include/asm-x86/hvm/svm/amd-iommu-defs.h => drivers/passthrough/amd/iommu-defs.h} (92%)
 rename xen/{include/asm-x86/hvm/svm/amd-iommu-proto.h => drivers/passthrough/amd/iommu.h} (68%)
 delete mode 100644 xen/include/asm-x86/amd-iommu.h