mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
0fad90955e
commit
965bc08310
3 changed files with 35 additions and 0 deletions
|
@ -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' ] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue