mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
vfio: Add property documentation
Investigate the git history to uncover when and why the VFIO properties were introduced and update the models. This is mostly targeting vfio-pci device, since vfio-platform, vfio-ap and vfio-ccw devices are simpler. Sort the properties based on the QEMU version in which they were introduced. Cc: Tony Krowiak <akrowiak@linux.ibm.com> Cc: Eric Farman <farman@linux.ibm.com> Cc: Eric Auger <eric.auger@redhat.com> Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Anthony Krowiak <akrowiak@linux.ibm.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> # vfio-ccw Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250217173455.449983-1-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
e8a0110293
commit
4526687bf1
4 changed files with 173 additions and 0 deletions
|
@ -672,6 +672,30 @@ static void vfio_platform_class_init(ObjectClass *klass, void *data)
|
|||
dc->desc = "VFIO-based platform device assignment";
|
||||
sbc->connect_irq_notifier = vfio_start_irqfd_injection;
|
||||
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
|
||||
|
||||
object_class_property_set_description(klass, /* 2.4 */
|
||||
"host",
|
||||
"Host device name of assigned device");
|
||||
object_class_property_set_description(klass, /* 2.4 and 2.5 */
|
||||
"x-no-mmap",
|
||||
"Disable MMAP for device. Allows to trace MMIO "
|
||||
"accesses (DEBUG)");
|
||||
object_class_property_set_description(klass, /* 2.4 */
|
||||
"mmap-timeout-ms",
|
||||
"When EOI is not provided by KVM/QEMU, wait time "
|
||||
"(milliseconds) to re-enable device direct access "
|
||||
"after level interrupt (DEBUG)");
|
||||
object_class_property_set_description(klass, /* 2.4 */
|
||||
"x-irqfd",
|
||||
"Allow disabling irqfd support (DEBUG)");
|
||||
object_class_property_set_description(klass, /* 2.6 */
|
||||
"sysfsdev",
|
||||
"Host sysfs path of assigned device");
|
||||
#ifdef CONFIG_IOMMUFD
|
||||
object_class_property_set_description(klass, /* 9.0 */
|
||||
"iommufd",
|
||||
"Set host IOMMUFD backend device");
|
||||
#endif
|
||||
}
|
||||
|
||||
static const TypeInfo vfio_platform_dev_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue