commit | 9e52cc0fedb0fd6187a2bd01b859ea8150b588c2 | [log] [tgz] |
---|---|---|
author | Lu Baolu <baolu.lu@linux.intel.com> | Thu Jun 10 10:01:00 2021 +0800 |
committer | Joerg Roedel <jroedel@suse.de> | Thu Jun 10 09:06:13 2021 +0200 |
tree | 37b33f5e62fd1ffef37d1756a412e411707fb308 | |
parent | 40483774141625b9685b177fb6e1f36de48d33f8 [diff] |
iommu/vt-d: Use common helper to lookup svm devices It's common to iterate the svm device list and find a matched device. Add common helpers to do this and consolidate the code. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20210520031531.712333-1-baolu.lu@linux.intel.com Link: https://lore.kernel.org/r/20210610020115.1637656-9-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>