File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1415,6 +1415,7 @@ static int domain_flush_pages_v2(struct protection_domain *pdom,
1415
1415
struct iommu_cmd cmd ;
1416
1416
int ret = 0 ;
1417
1417
1418
+ lockdep_assert_held (& pdom -> lock );
1418
1419
list_for_each_entry (dev_data , & pdom -> dev_list , list ) {
1419
1420
struct amd_iommu * iommu = get_amd_iommu_from_dev (dev_data -> dev );
1420
1421
u16 domid = dev_data -> gcr3_info .domid ;
@@ -1464,6 +1465,8 @@ static void __domain_flush_pages(struct protection_domain *domain,
1464
1465
ioasid_t pasid = IOMMU_NO_PASID ;
1465
1466
bool gn = false;
1466
1467
1468
+ lockdep_assert_held (& domain -> lock );
1469
+
1467
1470
if (pdom_is_v2_pgtbl_mode (domain )) {
1468
1471
gn = true;
1469
1472
ret = domain_flush_pages_v2 (domain , address , size );
@@ -1585,6 +1588,8 @@ void amd_iommu_update_and_flush_device_table(struct protection_domain *domain)
1585
1588
{
1586
1589
struct iommu_dev_data * dev_data ;
1587
1590
1591
+ lockdep_assert_held (& domain -> lock );
1592
+
1588
1593
list_for_each_entry (dev_data , & domain -> dev_list , list ) {
1589
1594
struct amd_iommu * iommu = rlookup_amd_iommu (dev_data -> dev );
1590
1595
You can’t perform that action at this time.
0 commit comments