Skip to contentSkip to conversation

ppc/xive2: Make type Xive2EndSource not user creatable

PATCH In review Cédric Le Goater 3 participants 5 messages Mar 11, 2022 – Mar 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc/xive2: Make type Xive2EndSource not user creatable

Xive2EndSource objects can only be instantiated through a Xive2Router (PnvXive2).

---
 hw/intc/xive2.c | 1 +
 1 file changed, 1 insertion(+)
hw/intc/xive2.c +1 -0
index b6452f14784b..3aff42a69ef5 100644
@@ -1000,6 +1000,7 @@ static void xive2_end_source_class_init(ObjectClass *klass, void *data)
     dc->desc    = "XIVE END Source";
     device_class_set_props(dc, xive2_end_source_properties);
     dc->realize = xive2_end_source_realize;
+    dc->user_creatable = false;
 }
 
 static const TypeInfo xive2_end_source_info = {
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Cédric Le Goater

Xive2EndSource objects can only be instantiated through a Xive2Router (PnvXive2).

---
  hw/intc/xive2.c | 1 +
  1 file changed, 1 insertion(+)
hw/intc/xive2.c +0 -0
index b6452f14784b..3aff42a69ef5 100644

hw/intc/xive2.c static void xive2_end_source_class_init(ObjectClass *klass, void *data) · line 1004

Quoted 5 lines
hw/intc/xive2.c +1 -0
@@ -1000,6 +1000,7 @@ static void xive2_end_source_class_init(ObjectClass *klass, void *data)
      dc->desc    = "XIVE END Source";
      device_class_set_props(dc, xive2_end_source_properties);
      dc->realize = xive2_end_source_realize;
+    dc->user_creatable = false;
  }
#2 lore raw
Quoted 10 lines · Thomas Huth
Quoted 9 lines · Cédric Le Goater

Xive2EndSource objects can only be instantiated through a Xive2Router (PnvXive2).

---
  hw/intc/xive2.c | 1 +

  1 file changed, 1 insertion(+)
Quoted 12 lines

hw/intc/xive2.c static void xive2_end_source_class_init(ObjectClass *klass, void *data) · line 1004

Quoted 10 lines
hw/intc/xive2.c +1 -0
index b6452f14784b..3aff42a69ef5 100644
@@ -1000,6 +1000,7 @@ static void xive2_end_source_class_init(ObjectClass *klass, void *data)
       dc->desc    = "XIVE END Source";
       device_class_set_props(dc, xive2_end_source_properties);
       dc->realize = xive2_end_source_realize;
+    dc->user_creatable = false;
   }

And,

Fixes f8a233dedf25 ("ppc/xive2: Introduce a XIVE2 core framework")

Thanks,

C.