iommu/amd: Add helper functions to update domain->pt_root
authorJoerg Roedel <jroedel@suse.de>
Fri, 26 Jun 2020 08:05:46 +0000 (10:05 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 30 Jun 2020 09:57:46 +0000 (11:57 +0200)
commit70fcd3592b05fde4d95938cd5a20e996b4ef4e15
tree60cd224d4e9a57075be36690afabcdd20e98483b
parent9a295ff0ffc94e1be60d604fee0cce4fbb3b8964
iommu/amd: Add helper functions to update domain->pt_root

Do not call atomic64_set() directly to update the domain page-table
root and use two new helper functions.

This makes it easier to implement additional work necessary when
the page-table is updated.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20200626080547.24865-2-joro@8bytes.org
drivers/iommu/amd/iommu.c