Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport.

Cornelia Huck
2013-01-24T14:42:44Z

On Thu, 24 Jan 2013 14:18:10 +0100
Andreas Färber <afaerber@suse.de> wrote:

Forgot one point :)

> > +/* DeviceState to VirtioCcwData. Note: used on datapath,
> > + * be careful and test performance if you change this.
> > + */
> > +static inline VirtioCcwData *to_virtio_ccw_data_fast(DeviceState *d)
> > +{
> > + return container_of(d, VirtioCcwData, parent_obj);
> > +}
> > +
> > +/* DeviceState to VirtioCcwData. TODO: use QOM. */
>
> Are the prerequisites to resolve this TODO not yet in qemu.git?

This is copied verbatim from s390-virtio-bus/virtio-pci; my guess it
that it will be resolved tree-wide.

>
> > +static inline VirtioCcwData *to_virtio_ccw_data(DeviceState *d)
> > +{
> > + return container_of(d, VirtioCcwData, parent_obj);
> > +}
> > +