Re: [PATCH v1] intel_iommu: fix bug to read DMAR_RTADDR_REG

2019-12-05 Thread Peter Xu
On Thu, Dec 05, 2019 at 05:54:39PM +0800, Yi Sun wrote: > Should directly read DMAR_RTADDR_REG but not using 's->root'. > Because 's->root' is modified in 'vtd_root_table_setup()' so > that the first 12 bits are omitted. This causes the guest > iommu debugfs cannot show pasid tables. > > Signed-of

[PATCH v1] intel_iommu: fix bug to read DMAR_RTADDR_REG

2019-12-05 Thread Yi Sun
Should directly read DMAR_RTADDR_REG but not using 's->root'. Because 's->root' is modified in 'vtd_root_table_setup()' so that the first 12 bits are omitted. This causes the guest iommu debugfs cannot show pasid tables. Signed-off-by: Yi Sun --- hw/i386/intel_iommu.c | 7 +++ 1 file changed