diff options
author | Eric Auger <eric.auger@redhat.com> | 2024-02-27 17:55:48 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-09 19:17:01 +0100 |
commit | 965bc083103e1359679932feb6aadd35359c24ae (patch) | |
tree | a676159a804510356ac9b720a116a341e10904a5 /qapi/virtio.json | |
parent | 0fad90955e3a56bfc45e623c1d96ae4a802ceda8 (diff) | |
download | qemu-965bc083103e1359679932feb6aadd35359c24ae.zip qemu-965bc083103e1359679932feb6aadd35359c24ae.tar.gz qemu-965bc083103e1359679932feb6aadd35359c24ae.tar.bz2 |
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>
Diffstat (limited to 'qapi/virtio.json')
-rw-r--r-- | qapi/virtio.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qapi/virtio.json b/qapi/virtio.json index a79013f..95745fd 100644 --- a/qapi/virtio.json +++ b/qapi/virtio.json @@ -957,3 +957,21 @@ { 'struct': 'DummyVirtioForceArrays', 'data': { 'unused-iothread-vq-mapping': ['IOThreadVirtQueueMapping'] } } + +## +# @GranuleMode: +# +# @4k: granule page size of 4KiB +# +# @8k: granule page size of 8KiB +# +# @16k: granule page size of 16KiB +# +# @64k: granule page size of 64KiB +# +# @host: granule matches the host page size +# +# Since: 9.0 +## +{ 'enum': 'GranuleMode', + 'data': [ '4k', '8k', '16k', '64k', 'host' ] } |