qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 01/18] qapi/qom: Add ObjectOptions for iothread


From: Paolo Bonzini
Subject: Re: [PATCH 01/18] qapi/qom: Add ObjectOptions for iothread
Date: Mon, 30 Nov 2020 16:00:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 30/11/20 13:25, Kevin Wolf wrote:
+##
+# @IothreadProperties:
+#
+# Properties for iothread objects.
+#
+# @poll-max-ns: the maximum number of nanoseconds to busy wait for events.
+#               0 means polling is disabled (default: 32768 on POSIX hosts,
+#               0 otherwise)
+#
+# @poll-grow: the multiplier used to increase the polling time when the
+#             algorithm detects it is missing events due to not polling long
+#             enough. 0 selects a default behaviour (default: 0)
+#
+# @poll-shrink: the divisor used to decrease the polling time when the
+#               algorithm detects it is spending too long polling without
+#               encountering events. 0 selects a default behaviour (default: 0)
+#
+# Since: 6.0
+##
+{ 'struct': 'IothreadProperties',
+  'data': { '*poll-max-ns': 'int',
+            '*poll-grow': 'int',
+            '*poll-shrink': 'int' } }
+

Documentation is the main advantage of the ObjectOptions concept. However, please use the version where each object and property was introduced for the "since" value. Otherwise the documentation will appear to show that none of these objects was available before 6.0.

Yes, there is no documentation at all right now for QOM objects. However, wrong documentation sometimes is worse than non-existing documentation.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]