Skip to content

Commit

Permalink
ppc/xive2: Make type Xive2EndSource not user creatable
Browse files Browse the repository at this point in the history
Xive2EndSource objects can only be instantiated through a Xive2Router
(PnvXive2).

Reported-by: Thomas Huth <thuth@redhat.com>
Fixes: f8a233d ("ppc/xive2: Introduce a XIVE2 core framework")
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
  • Loading branch information
legoater committed Mar 14, 2022
1 parent 52d324f commit 5d927bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/intc/xive2.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5d927bc

Please sign in to comment.