Skip to contentSkip to conversation

VT-d: drop undue address-of from check_cleanup_domid_map()

PATCH In review Jan Beulich 3 participants 3 messages Mar 8, 2022 – Mar 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VT-d: drop undue address-of from check_cleanup_domid_map()

For an unknown reason I added back the operator while backporting, despite 4.16 having c06e3d810314 ("VT-d: per-domain IOMMU bitmap needs to have dynamic size"). I can only assume that I mistakenly took the 4.15 backport as basis and/or reference.

Fixes fa45f6b5560e ("VT-d: split domid map cleanup check into a function")
xen/drivers/passthrough/vtd/iommu.c +1 -1
@@ -197,7 +197,7 @@ static void check_cleanup_domid_map(stru
 
     if ( !found )
     {
-        clear_bit(iommu->index, &dom_iommu(d)->arch.vtd.iommu_bitmap);
+        clear_bit(iommu->index, dom_iommu(d)->arch.vtd.iommu_bitmap);
         cleanup_domid_map(d, iommu);
     }
 }
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

For an unknown reason I added back the operator while backporting, despite 4.16 having c06e3d810314 ("VT-d: per-domain IOMMU bitmap needs to have dynamic size"). I can only assume that I mistakenly took the 4.15 backport as basis and/or reference.

Fixes fa45f6b5560e ("VT-d: split domid map cleanup check into a function")

Thanks, Roger.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jan Beulich
Quoted 10 lines

From: Jan Beulich <[email protected]>
Sent: Tuesday, March 8, 2022 11:27 PM

For an unknown reason I added back the operator while backporting, despite 4.16 having c06e3d810314 ("VT-d: per-domain IOMMU bitmap needs to have dynamic size"). I can only assume that I mistakenly took the 4.15 backport as basis and/or reference.

Fixes fa45f6b5560e ("VT-d: split domid map cleanup check into a function")
Quoted 12 lines
xen/drivers/passthrough/vtd/iommu.c +1 -1
@@ -197,7 +197,7 @@ static void check_cleanup_domid_map(stru
 
     if ( !found )
     {
-        clear_bit(iommu->index, &dom_iommu(d)->arch.vtd.iommu_bitmap);
+        clear_bit(iommu->index, dom_iommu(d)->arch.vtd.iommu_bitmap);
         cleanup_domid_map(d, iommu);
     }
 }