summaryrefslogtreecommitdiffstats
path: root/hw/i386/sgx.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker2022-07-18 15:56:37 +0200
committerMichael S. Tsirkin2022-07-26 21:33:29 +0200
commit0522be9a0c0094088ccef7aab352c57f483ca250 (patch)
tree8bb87176f0ae8282f22ca1b639be8b062265af88 /hw/i386/sgx.c
parenti386/pc: restrict AMD only enforcing of 1Tb hole to new machine type (diff)
downloadqemu-0522be9a0c0094088ccef7aab352c57f483ca250.tar.gz
qemu-0522be9a0c0094088ccef7aab352c57f483ca250.tar.xz
qemu-0522be9a0c0094088ccef7aab352c57f483ca250.zip
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 'hw/i386/sgx.c')
0 files changed, 0 insertions, 0 deletions