amd-iommu: get rid of pointless IOMMU_PAGING_MODE_LEVEL_X definitions
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 29 Oct 2018 12:47:24 +0000 (13:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 29 Oct 2018 12:47:24 +0000 (13:47 +0100)
commit1ecb1ee4d8475475c3ccf72f6654644b242ce856
tree0c52d2131df3d32c7c196be12af8b2fdd7946aef
parent9254b0f5e93d11bbb9aceeaca48245c305e3bb39
amd-iommu: get rid of pointless IOMMU_PAGING_MODE_LEVEL_X definitions

The levels are absolute numbers such that IOMMU_PAGING_MODE_LEVEL_X
evaluates to X (for the valid range of 0 - 7) so simply use numbers in
the code.

No functional change.

NOTE: This patch also adds emacs boilerplate to amd-iommu-defs.h

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h