AMD/IOMMU: miscellaneous DTE handling adjustments
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Aug 2019 10:11:22 +0000 (12:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Aug 2019 10:11:22 +0000 (12:11 +0200)
commit60fd88b5285f4bd36348d547eca44f8f3deb4028
treef57b3ae0021fc9e792e03b7379fae9e8e27cabc4
parent260940578de348c38f18cadc6fa53f499e57919c
AMD/IOMMU: miscellaneous DTE handling adjustments

First and foremost switch boolean fields to bool. Adjust a few related
function parameters as well. Then
- in amd_iommu_set_intremap_table() don't use literal numbers,
- in iommu_dte_add_device_entry() use a compound literal instead of many
  assignments,
- in amd_iommu_setup_domain_device()
  - eliminate a pointless local variable,
  - use || instead of && when deciding whether to clear an entry,
  - clear the I field without any checking of ATS / IOTLB state,
- leave reserved fields unnamed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_intr.c
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
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h