On Wed, 4 Nov 2020 12:25:11 -0500 Eduardo Habkost <ehabk...@redhat.com> wrote:
> Introduce a FIELD_PTR macro that will ensure the size of the area > we are accessing has the correct size, and will return a pointer > of the correct type. > > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- > Cc: Stefan Berger <stef...@linux.vnet.ibm.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Anthony Perard <anthony.per...@citrix.com> > Cc: Paul Durrant <p...@xen.org> > Cc: Kevin Wolf <kw...@redhat.com> > Cc: Max Reitz <mre...@redhat.com> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Cc: "Daniel P. Berrangé" <berra...@redhat.com> > Cc: Eduardo Habkost <ehabk...@redhat.com> > Cc: Cornelia Huck <coh...@redhat.com> > Cc: Thomas Huth <th...@redhat.com> > Cc: Halil Pasic <pa...@linux.ibm.com> > Cc: Christian Borntraeger <borntrae...@de.ibm.com> > Cc: Richard Henderson <r...@twiddle.net> > Cc: David Hildenbrand <da...@redhat.com> > Cc: Matthew Rosato <mjros...@linux.ibm.com> > Cc: Alex Williamson <alex.william...@redhat.com> > Cc: qemu-devel@nongnu.org > Cc: xen-de...@lists.xenproject.org > Cc: qemu-bl...@nongnu.org > Cc: qemu-s3...@nongnu.org > --- > include/qom/field-property.h | 21 ++++++++++- > backends/tpm/tpm_util.c | 6 ++-- > hw/block/xen-block.c | 4 +-- > hw/core/qdev-properties-system.c | 50 +++++++++++++------------- > hw/s390x/css.c | 4 +-- > hw/s390x/s390-pci-bus.c | 4 +-- > hw/vfio/pci-quirks.c | 4 +-- > qom/field-property.c | 3 +- > qom/property-types.c | 60 +++++++++++++++++--------------- > 9 files changed, 89 insertions(+), 67 deletions(-) Acked-by: Cornelia Huck <coh...@redhat.com>