AMD/IOMMU: convert amd_iommu_pte from struct to union
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Oct 2020 12:22:26 +0000 (14:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Oct 2020 12:22:26 +0000 (14:22 +0200)
commit73f62c7380edf07469581a3049aba98abd63b275
tree7da07fd73b9782b8f84e11232d49bf60e1ed990e
parent5777a3742d88ff1c0ebc626ceb4fd47f9b3dc6d5
AMD/IOMMU: convert amd_iommu_pte from struct to union

This is to add a "raw" counterpart to the bitfield equivalent. Take the
opportunity and
 - convert fields to bool / unsigned int,
 - drop the naming of the reserved field,
 - shorten the names of the ignored ones.

This is part of XSA-347.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/drivers/passthrough/amd/iommu-defs.h
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c