From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport. Date: Thu, 24 Jan 2013 15:42:44 +0100 Message-ID: <20130124154244.0d898ef2@gondolin> References: <1359030491-46725-1-git-send-email-cornelia.huck@de.ibm.com> <1359030491-46725-9-git-send-email-cornelia.huck@de.ibm.com> <51013492.9070703@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <51013492.9070703@suse.de> Sender: kvm-owner@vger.kernel.org List-Archive: List-Post: To: Andreas =?UTF-8?B?RsOkcmJlcg==?= Cc: qemu-devel , KVM , linux-s390 , Carsten Otte , Anthony Liguori , Gleb Natapov , Sebastian Ott , Marcelo Tosatti , Heiko Carstens , Alexander Graf , Christian Borntraeger , Martin Schwidefsky List-ID: On Thu, 24 Jan 2013 14:18:10 +0100 Andreas F=C3=A4rber wrote: =46orgot 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. */ >=20 > 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. >=20 > > +static inline VirtioCcwData *to_virtio_ccw_data(DeviceState *d) > > +{ > > + return container_of(d, VirtioCcwData, parent_obj); > > +} > > +