diff options
author | Bharat Bhushan | 2020-10-30 19:05:09 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2020-11-03 13:19:27 +0100 |
commit | 5c3cfe33f4185841feaedd07bea1d6d7e02011a0 (patch) | |
tree | 4a2d0ee707a79a64d368bd4a63bee2eca2993173 /hw/vfio | |
parent | vfio: Set IOMMU page size as per host supported page size (diff) | |
download | qemu-5c3cfe33f4185841feaedd07bea1d6d7e02011a0.tar.gz qemu-5c3cfe33f4185841feaedd07bea1d6d7e02011a0.tar.xz qemu-5c3cfe33f4185841feaedd07bea1d6d7e02011a0.zip |
virtio-iommu: Set supported page size mask
The virtio-iommu device can deal with arbitrary page sizes for virtual
endpoints, but for endpoints assigned with VFIO it must follow the page
granule used by the host IOMMU driver.
Implement the interface to set the vIOMMU page size mask, called by VFIO
for each endpoint. We assume that all host IOMMU drivers use the same
page granule (the host page granule). Override the page_size_mask field
in the virtio config space.
Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20201030180510.747225-10-jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/vfio')
0 files changed, 0 insertions, 0 deletions