iommu/amd: Add pasid_state->invalid flag
authorJoerg Roedel <jroedel@suse.de>
Tue, 8 Jul 2014 13:01:43 +0000 (15:01 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jul 2014 13:36:46 +0000 (15:36 +0200)
commit53d340ef4a19ccade5305fc38808cac04861b322
treeb1051d9a4fc7cb1898500eff2fc2c00ed9546e4e
parentdc88db7ee9f9a0a850dcee5738031f888ba124b7
iommu/amd: Add pasid_state->invalid flag

This is used to signal the ppr_notifer function that no more
faults should be processes on this pasid_state. This way we
can keep the pasid_state safely in the state-table so that
it can be freed in the amd_iommu_unbind_pasid() function.

This allows us to not hold a reference to the mm_struct
during the whole pasid-binding-time.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Oded Gabbay <Oded.Gabbay@amd.com>
drivers/iommu/amd_iommu_v2.c