virtio-iommu: Add a granule property
authorEric Auger <eric.auger@redhat.com>
Thu, 7 Mar 2024 13:43:03 +0000 (14:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Mar 2024 21:56:55 +0000 (17:56 -0400)
commit294ac5fef3aa78111de07357734285744103f47c
tree8f7d010c9c0a4dafc458da85eec2305695144d79
parent5deced6a13de9409fd9114432b25072189a68942
virtio-iommu: Add a granule property

This allows to choose which granule will be used by
default by the virtio-iommu. Current page size mask
default is qemu_target_page_mask so this translates
into a 4k granule on ARM and x86_64 where virtio-iommu
is supported.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Message-Id: <20240307134445.92296-3-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-iommu.c
include/hw/virtio/virtio-iommu.h