qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH v2] ppc: add host-serial and host-model machine at


From: David Gibson
Subject: Re: [Qemu-ppc] [PATCH v2] ppc: add host-serial and host-model machine attributes
Date: Fri, 15 Feb 2019 11:18:34 +1100
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, Feb 15, 2019 at 12:57:35AM +0530, P J P wrote:
> +-- On Wed, 13 Feb 2019, David Gibson wrote --+
> | > +
> | > +    object_class_property_add_str(oc, "host-serial",
> | > +        machine_get_host_serial, machine_set_host_serial,
> | > +        &error_abort);
> | > +    object_class_property_set_description(oc, "host-serial",
> | > +        "Set host's system-id to use", &error_abort);
> | > +
> | > +    object_class_property_add_str(oc, "host-model",
> | > +        machine_get_host_model, machine_set_host_model,
> | > +        &error_abort);
> | > +    object_class_property_set_description(oc, "host-model",
> | > +        "Set host's model-id to use", &error_abort);
> | 
> | You're adding properties to *all* machines, for something that's only
> | used on the PAPR machine.  That doesn't seem right.
> 
> I tried to figure out about adding these options to only spapr machine, but 
> it 
> does not seem straight forward as above.

It really should be.  You can just put those
object_class_property_add()s into spapr_machine_class_init().

> | >      spapr_machine_4_0_class_options(mc);
> | >      compat_props_add(mc->compat_props, hw_compat_3_1, hw_compat_3_1_len);
> | > +    compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
> | 
> | I'm still not convinced maintaining super-strict backwards compat at
> | the expense of security is a good tradeoff here, but since the code's
> | already written, let's run with it.
> 
> I think current patch will provide a way to help fix the security issue, we 
> can revise it further if required.

That's reasonable.

> 
> Thank you.

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]