aboutsummaryrefslogtreecommitdiff
path: root/scripts/analyse-locks-simpletrace.py
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2019-06-24 17:18:11 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-05 22:16:46 +0200
commit9a4bb8391fda2312803d44664575a662b9be7189 (patch)
tree335eee30aea3174e5f3963bf04f625770cde2a24 /scripts/analyse-locks-simpletrace.py
parentd6d10793dcfa33504745be40b49bd747ff8752ef (diff)
intel_iommu: Fix unexpected unmaps during global unmap
This is an replacement work of Yan Zhao's patch: https://www.mail-archive.com/qemu-devel@nongnu.org/msg625340.html vtd_address_space_unmap() will do proper page mask alignment to make sure each IOTLB message will have correct masks for notification messages (2^N-1), but sometimes it can be expanded to even supercede the registered range. That could lead to unexpected UNMAP of already mapped regions in some other notifiers. Instead of doing mindless expension of the start address and address mask, we split the range into smaller ones and guarantee that each small range will have correct masks (2^N-1) and at the same time we should also try our best to generate as less IOTLB messages as possible. Reported-by: Yan Zhao <yan.y.zhao@intel.com> Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Yan Zhao <yan.y.zhao@intel.com> Message-Id: <20190624091811.30412-3-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/analyse-locks-simpletrace.py')
0 files changed, 0 insertions, 0 deletions