vfio: Add property documentation
PATCH 1/1 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-plateform, vfio-ap and vfio-ccw devices are simpler.
Fpr PCI, it would be great to have a way to organize the output by
topics : display, igd, nvidia, migration, debug, other
Cc Tony Krowiak <[email protected]>
Cc Eric Farman <[email protected]>
Cc Eric Auger <[email protected]>
Signed-off-by Cédric Le Goater <[email protected]>
--- hw/vfio/ap.c | 9 ++++ hw/vfio/ccw.c | 15 +++++++ hw/vfio/pci.c | 102 +++++++++++++++++++++++++++++++++++++++++++++ hw/vfio/platform.c | 23 ++++++++++ 4 files changed, 149 insertions(+)
hw/vfio/ap.c +9 -0
@@ -257,6 +257,15 @@ static void vfio_ap_class_init(ObjectClass *klass, void *data) dc->hotpluggable = true;device_class_set_legacy_reset (dc, vfio_ap_reset); dc->bus_type =TYPE_AP_BUS ; + +object_class_property_set_description (klass,/* 3.0 */ +"sysfsdev" , +"Host sysfs path of assigned device" ); +#ifdef CONFIG_IOMMUFD +object_class_property_set_description (klass,/* 8.2 */ +"iommufd" , +"Set host IOMMUFD backend device " ); +#endif }static const TypeInfo vfio_ap_info = {
hw/vfio/ccw.c +15 -0
@@ -717,6 +717,21 @@ static void vfio_ccw_class_init(ObjectClass *klass, void *data) cdc->handle_halt = vfio_ccw_handle_halt; cdc->handle_clear = vfio_ccw_handle_clear; cdc->handle_store = vfio_ccw_handle_store; + +object_class_property_set_description (klass,/* 2.9 */ +"sysfsdev" , +"Host sysfs path of assigned device" ); +object_class_property_set_description (klass,/* 2.12 */ +"force-orb-pfch" , +"Force unlimited prefetch" ); +#ifdef CONFIG_IOMMUFD +object_class_property_set_description (klass,/* 8.2 */ +"iommufd" , +"Set host IOMMUFD backend device " ); +object_class_property_set_description (klass,/* 9.2 */ +"loadparm" , +"Define which devices that can be used for booting" ); +#endif }static const TypeInfo vfio_ccw_info = {
hw/vfio/pci.c +102 -0
108 lines not on this page · raw message
hw/vfio/platform.c +23 -0
@@ -674,6 +674,29 @@ static void vfio_platform_class_init(ObjectClass *klass, void *data)set_bit (DEVICE_CATEGORY_MISC , dc->categories);/* Supported by TYPE_VIRT_MACHINE */ dc->user_creatable = true; + +object_class_property_set_description (klass,/* 2.3 */ +"host" , +"Host device name of assigned device" ); +object_class_property_set_description (klass,/* 2.3 */ +"sysfsdev" , +"Host sysfs path of assigned device" ); +object_class_property_set_description (klass,/* 2.3 and 2.4 */ +"x-no-mmap" , +"Disable MMAP for device. Allows to trace MMIO accesses" ); +object_class_property_set_description (klass,/* 2.3 */ +"mmap-timeout-ms" , +"Timeout value in milliseconds to re-enable BAR mapping" ); +object_class_property_set_description (klass,/* 2.3 */ +"x-irqfd" , +"Use irqfd for IRQ handling" ); + +#ifdef CONFIG_IOMMUFD +object_class_property_set_description (klass,/* 8.2 */ +"iommufd" , +"Set host IOMMUFD backend device " ); +#endif + }static const TypeInfo vfio_platform_dev_info = {
Signature · 1 line
2.48.1