Skip to contentSkip to conversation

iommu/amd: Unify reserved member naming convention in struct

PATCH New Wesley Sheng 1 participant 2 messages Sep 4, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 iommu/amd: Unify reserved member naming convention in struct

Unify reserved member naming convention to rsvd_x in struct

---
 drivers/iommu/amd/amd_iommu_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd/amd_iommu_types.h +1 -1
index 30a5d412255a..e5b05a97eb46 100644
@@ -841,7 +841,7 @@ union irte_ga_lo {
 		    no_fault	: 1,
 		    /* ------ */
 		    ga_log_intr	: 1,
-		    rsvd1	: 3,
+		    rsvd_1	: 3,
 		    is_run	: 1,
 		    /* ------ */
 		    guest_mode	: 1,
Signature · 1 line
2.16.2
#1 lore raw

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.

---
 drivers/iommu/amd/amd_iommu_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd/amd_iommu_types.h +1 -1
index e5b05a97eb46..baa31cd2411c 100644
@@ -832,7 +832,7 @@ union irte_ga_lo {
 		    /* ------ */
 		    guest_mode	: 1,
 		    destination	: 24,
-		    ga_tag	: 32;
+		    rsvd_1	: 32;
 	} fields_remap;
 
 	/* For guest vAPIC */
Signature · 1 line
2.16.2