Re: [PATCH v2] hw/virtio/virtio-iommu: Enforce power-of-two notify for both MAP and UNMAP

2022-07-20 Thread tina . zhang
On 7/18/22 21:56, Jean-Philippe Brucker wrote: 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

[PATCH v2] hw/virtio/virtio-iommu: Enforce power-of-two notify for both MAP and UNMAP

2022-07-18 Thread Jean-Philippe Brucker
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