diff mbox series

[1/2] xive: Add /* Reason */ comment to "->user_creatable = false" statements

Message ID 157045578401.865784.6058183726552779559.stgit@bahia.lan (mailing list archive)
State New, archived
Headers show
Series xics, xive: Add some missing comments | expand

Commit Message

Greg Kurz Oct. 7, 2019, 1:43 p.m. UTC
Signed-off-by: Greg Kurz <groug@kaod.org>
---
 hw/intc/xive.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/hw/intc/xive.c b/hw/intc/xive.c
index 6c54a35fd4bb..453d389848f8 100644
--- a/hw/intc/xive.c
+++ b/hw/intc/xive.c
@@ -670,6 +670,10 @@  static void xive_tctx_class_init(ObjectClass *klass, void *data)
     dc->realize = xive_tctx_realize;
     dc->unrealize = xive_tctx_unrealize;
     dc->vmsd = &vmstate_xive_tctx;
+    /*
+     * Reason: part of XIVE interrupt controller, needs to be wired up
+     * by xive_tctx_create().
+     */
     dc->user_creatable = false;
 }
 
@@ -1119,6 +1123,10 @@  static void xive_source_class_init(ObjectClass *klass, void *data)
     dc->props   = xive_source_properties;
     dc->realize = xive_source_realize;
     dc->vmsd    = &vmstate_xive_source;
+    /*
+     * Reason: part of XIVE interrupt controller, needs to be wired up,
+     * e.g. by spapr_xive_instance_init().
+     */
     dc->user_creatable = false;
 }
 
@@ -1855,6 +1863,10 @@  static void xive_end_source_class_init(ObjectClass *klass, void *data)
     dc->desc    = "XIVE END Source";
     dc->props   = xive_end_source_properties;
     dc->realize = xive_end_source_realize;
+    /*
+     * Reason: part of XIVE interrupt controller, needs to be wired up,
+     * e.g. by spapr_xive_instance_init().
+     */
     dc->user_creatable = false;
 }