diff mbox series

ppc/xive2: Make type Xive2EndSource not user creatable

Message ID 20220311074352.171536-1-clg@kaod.org
State New
Headers show
Series ppc/xive2: Make type Xive2EndSource not user creatable | expand

Commit Message

Cédric Le Goater March 11, 2022, 7:43 a.m. UTC
Xive2EndSource objects can only be instantiated through a Xive2Router
(PnvXive2).

Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 hw/intc/xive2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Huth March 11, 2022, 7:45 a.m. UTC | #1
On 11/03/2022 08.43, Cédric Le Goater wrote:
> Xive2EndSource objects can only be instantiated through a Xive2Router
> (PnvXive2).
> 
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> ---
>   hw/intc/xive2.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c
> index b6452f14784b..3aff42a69ef5 100644
> --- a/hw/intc/xive2.c
> +++ b/hw/intc/xive2.c
> @@ -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;
>   }

Reviewed-by: Thomas Huth <thuth@redhat.com>
Cédric Le Goater March 11, 2022, 7:46 a.m. UTC | #2
On 3/11/22 08:45, Thomas Huth wrote:
> On 11/03/2022 08.43, Cédric Le Goater wrote:
>> Xive2EndSource objects can only be instantiated through a Xive2Router
>> (PnvXive2).
>>
>> Suggested-by: Thomas Huth <thuth@redhat.com>
>> Signed-off-by: Cédric Le Goater <clg@kaod.org>
>> ---
>>   hw/intc/xive2.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c
>> index b6452f14784b..3aff42a69ef5 100644
>> --- a/hw/intc/xive2.c
>> +++ b/hw/intc/xive2.c
>> @@ -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;
>>   }
> 
> Reviewed-by: Thomas Huth <thuth@redhat.com>

And,

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

Thanks,

C.
Philippe Mathieu-Daudé March 13, 2022, 2 p.m. UTC | #3
On 11/3/22 08:43, Cédric Le Goater wrote:
> Xive2EndSource objects can only be instantiated through a Xive2Router
> (PnvXive2).
> 
> Suggested-by: Thomas Huth <thuth@redhat.com>

Reported-by?

> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> ---
>   hw/intc/xive2.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cédric Le Goater March 14, 2022, 3:20 p.m. UTC | #4
On 3/11/22 08:43, Cédric Le Goater wrote:
> Xive2EndSource objects can only be instantiated through a Xive2Router
> (PnvXive2).
> 
> Suggested-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> ---
>   hw/intc/xive2.c | 1 +
>   1 file changed, 1 insertion(+)


Queued for 7.0

Thanks,

C.
diff mbox series

Patch

diff --git a/hw/intc/xive2.c b/hw/intc/xive2.c
index b6452f14784b..3aff42a69ef5 100644
--- a/hw/intc/xive2.c
+++ b/hw/intc/xive2.c
@@ -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 = {