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

Re: [PATCH 14/36] qdev: Move dev->realized check to qdev_property_set()





On Fri, Oct 30, 2020 at 2:10 AM Eduardo Habkost <ehabkost@xxxxxxxxxx> wrote:
Every single qdev property setter function manually checks
dev->realized.  We can just check dev->realized inside
qdev_property_set() instead.

The check is being added as a separate function
(qdev_prop_allow_set()) because it will become a callback later.

Signed-off-by: Eduardo Habkost <ehabkost@xxxxxxxxxx>

nice
Reviewed-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx

--
Marc-André Lureau

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.