diff options
author | CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> | 2025-04-30 12:48:06 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2025-05-14 07:45:51 -0400 |
commit | 1b85dff5f0be30ddbcb7edbd3c084c9c5ee351ca (patch) | |
tree | 11ca344f5104cd0e6a298b2a005bea1c7e714ca1 /python/scripts | |
parent | b1c84782bfddeaa0070f5ae57ac2e4e3992f9f19 (diff) | |
download | qemu-1b85dff5f0be30ddbcb7edbd3c084c9c5ee351ca.zip qemu-1b85dff5f0be30ddbcb7edbd3c084c9c5ee351ca.tar.gz qemu-1b85dff5f0be30ddbcb7edbd3c084c9c5ee351ca.tar.bz2 |
intel_iommu: Take locks when looking for and creating address spaces
vtd_find_add_as can be called by multiple threads which leads to a race
condition. Taking the IOMMU lock ensures we avoid such a race.
Moreover we also need to take the bql to avoid an assert to fail in
memory_region_add_subregion_overlap when actually allocating a new
address space.
Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
Message-Id: <20250430124750.240412-3-clement.mathieu--drif@eviden.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions