aboutsummaryrefslogtreecommitdiff
path: root/stubs/icount.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe@linaro.org>2022-07-18 14:56:37 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-07-26 15:33:29 -0400
commit0522be9a0c0094088ccef7aab352c57f483ca250 (patch)
tree8bb87176f0ae8282f22ca1b639be8b062265af88 /stubs/icount.c
parentb3e6982b4154c1c0ab8b25f2e1ac7838a1809824 (diff)
downloadqemu-0522be9a0c0094088ccef7aab352c57f483ca250.zip
qemu-0522be9a0c0094088ccef7aab352c57f483ca250.tar.gz
qemu-0522be9a0c0094088ccef7aab352c57f483ca250.tar.bz2
hw/virtio/virtio-iommu: Enforce power-of-two notify for both MAP and UNMAP
Currently we only enforce power-of-two mappings (required by the QEMU notifier) for UNMAP requests. A MAP request not aligned on a power-of-two may be successfully handled by VFIO, and then the corresponding UNMAP notify will fail because it will attempt to split that mapping. Ensure MAP and UNMAP notifications are consistent. Fixes: dde3f08b5cab ("virtio-iommu: Handle non power of 2 range invalidations") Reported-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Message-Id: <20220718135636.338264-1-jean-philippe@linaro.org> Tested-by: Tina Zhang <tina.zhang@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'stubs/icount.c')
0 files changed, 0 insertions, 0 deletions