Re: [PATCH v4 01/11] iommu/vt-d: debugfs: Remove device_domain_lock usage

2022-07-07 Thread Baolu Lu
On 2022/7/7 16:30, Ethan Zhao wrote: -static int show_device_domain_translation(struct device *dev, void *data) +static int __show_device_domain_translation(struct device *dev, void *data) { - struct device_domain_info *info = dev_iommu_priv_get(dev); - struct dmar_domain *domain =

Re: [PATCH v4 01/11] iommu/vt-d: debugfs: Remove device_domain_lock usage

2022-07-07 Thread Ethan Zhao
Baolu, 在 2022/7/6 10:55, Lu Baolu 写道: The domain_translation_struct debugfs node is used to dump the DMAR page tables for the PCI devices. It potentially races with setting domains to devices. The existing code uses the global spinlock device_domain_lock to avoid the races. This removes the use

[PATCH v4 01/11] iommu/vt-d: debugfs: Remove device_domain_lock usage

2022-07-05 Thread Lu Baolu
The domain_translation_struct debugfs node is used to dump the DMAR page tables for the PCI devices. It potentially races with setting domains to devices. The existing code uses the global spinlock device_domain_lock to avoid the races. This removes the use of device_domain_lock outside of iommu.c