2020-09-04 10:12:47

by Wesley Sheng

[permalink] [raw]
Subject: [PATCH 2/2] iommu/amd: Revise ga_tag member in struct of fields_remap

Per <<AMD I/0 Virtualization Technology (IOMMU) specification>>
ga_tag member is only available when IRTE[GuestMode]=1, this field
should be reserved when IRTE[GuestMode]=0. So change the ga_tag
to rsvd_1 in struct of fields_remap.

Signed-off-by: Wesley Sheng <[email protected]>
---
drivers/iommu/amd/amd_iommu_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index e5b05a97eb46..baa31cd2411c 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -832,7 +832,7 @@ union irte_ga_lo {
/* ------ */
guest_mode : 1,
destination : 24,
- ga_tag : 32;
+ rsvd_1 : 32;
} fields_remap;

/* For guest vAPIC */
--
2.16.2