qdev: Add a granule_mode property
commit965bc083103e1359679932feb6aadd35359c24ae
authorEric Auger <eric.auger@redhat.com>
Tue, 27 Feb 2024 16:55:48 +0000 (27 17:55 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 9 Mar 2024 18:17:01 +0000 (9 19:17 +0100)
treea676159a804510356ac9b720a116a341e10904a5
parent0fad90955e3a56bfc45e623c1d96ae4a802ceda8
qdev: Add a granule_mode property

Introduce a new enum type property allowing to set an
IOMMU granule. Values are 4k, 8k, 16k, 64k and host.
This latter indicates the vIOMMU granule will match
the host page size.

A subsequent patch will add such a property to the
virtio-iommu device.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240227165730.14099-2-eric.auger@redhat.com>
hw/core/qdev-properties-system.c
include/hw/qdev-properties-system.h
qapi/virtio.json