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 Cc: qemu-devel , KVM , linux-s390 , Carsten Otte , Anthony Liguori , Gleb Natapov , Sebastian Ott , Marcelo Tosatti , Heiko Carstens , Alexander Graf , Christian Borntraeger , Martin Schwidefsky To: Andreas =?UTF-8?B?RsOkcmJlcg==?= Return-path: Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:57924 "EHLO e06smtp10.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983Ab3AXOmv convert rfc822-to-8bit (ORCPT ); Thu, 24 Jan 2013 09:42:51 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 Jan 2013 14:42:12 -0000 In-Reply-To: <51013492.9070703@suse.de> Sender: kvm-owner@vger.kernel.org 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); > > +} > > +