[RFC PATCH 11/12] qapi/qom: Add class definition for rng-builtin

Kevin Wolf posted 12 patches 4 years, 3 months ago
Maintainers: Amit Shah <amit@kernel.org>, Michael Roth <michael.roth@amd.com>, Laurent Vivier <lvivier@redhat.com>, Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
[RFC PATCH 11/12] qapi/qom: Add class definition for rng-builtin
Posted by Kevin Wolf 4 years, 3 months ago
This doesn't add any configuration options compared to its parent class,
so this just makes the schema a little more descriptive with no other
code changes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 qapi/qom.json | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/qapi/qom.json b/qapi/qom.json
index a167e91f67..864c6a658b 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -731,6 +731,16 @@
 { 'class': 'rng-backend',
   'config': 'RngProperties' }
 
+##
+# @rng-builtin:
+#
+# Built-in random number generator backend
+#
+# Since: 1.3
+##
+{ 'class': 'rng-builtin',
+  'parent': 'rng-backend' }
+
 ##
 # @RngEgdProperties:
 #
@@ -897,7 +907,7 @@
       'pr-manager-helper':          { 'type': 'PrManagerHelperProperties',
                                       'if': 'CONFIG_LINUX' },
       'qtest':                      'QtestProperties',
-      'rng-builtin':                'RngProperties',
+      'rng-builtin':                'qom-config:rng-builtin',
       'rng-egd':                    'RngEgdProperties',
       'rng-random':                 { 'type': 'qom-config:rng-random',
                                       'if': 'CONFIG_POSIX' },
-- 
2.31.1