> -----Original Message----- > From: Eduardo Habkost <ehabk...@redhat.com> > Sent: 11 December 2020 22:05 > To: qemu-de...@nongnu.org > Cc: Markus Armbruster <arm...@redhat.com>; Igor Mammedov > <imamm...@redhat.com>; Stefan Berger > <stef...@linux.ibm.com>; Marc-André Lureau <marcandre.lur...@redhat.com>; > Daniel P. Berrange > <berra...@redhat.com>; Philippe Mathieu-Daudé <phi...@redhat.com>; John Snow > <js...@redhat.com>; Kevin > Wolf <kw...@redhat.com>; Eric Blake <ebl...@redhat.com>; Paolo Bonzini > <pbonz...@redhat.com>; Stefan > Berger <stef...@linux.vnet.ibm.com>; Stefano Stabellini > <sstabell...@kernel.org>; Anthony Perard > <anthony.per...@citrix.com>; Paul Durrant <p...@xen.org>; Max Reitz > <mre...@redhat.com>; Cornelia Huck > <coh...@redhat.com>; Halil Pasic <pa...@linux.ibm.com>; Christian Borntraeger > <borntrae...@de.ibm.com>; Richard Henderson <r...@twiddle.net>; David > Hildenbrand <da...@redhat.com>; > Thomas Huth <th...@redhat.com>; Matthew Rosato <mjros...@linux.ibm.com>; Alex > Williamson > <alex.william...@redhat.com>; Mark Cave-Ayland > <mark.cave-ayl...@ilande.co.uk>; Artyom Tarasenko > <atar4q...@gmail.com>; xen-de...@lists.xenproject.org; qemu-block@nongnu.org; > qemu-s3...@nongnu.org > Subject: [PATCH v4 23/32] qdev: Move dev->realized check to > qdev_property_set() > > 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. > > Reviewed-by: Stefan Berger <stef...@linux.ibm.com> > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Xen parts... Acked-by: Paul Durrant <p...@xen.org>