From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duf1b-0002jL-Bj for qemu-devel@nongnu.org; Wed, 20 Sep 2017 09:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duf0q-0003lq-SO for qemu-devel@nongnu.org; Wed, 20 Sep 2017 09:26:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50260) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duf0q-0003lg-MT for qemu-devel@nongnu.org; Wed, 20 Sep 2017 09:26:00 -0400 Date: Wed, 20 Sep 2017 12:57:55 +0200 From: Cornelia Huck Message-ID: <20170920125755.51672531.cohuck@redhat.com> In-Reply-To: References: <20170919182745.90280-1-pasic@linux.vnet.ibm.com> <20170919182745.90280-4-pasic@linux.vnet.ibm.com> <20170920095818.17c52249.cohuck@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 3/5] virtio-ccw: use ccw data stream List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Halil Pasic Cc: Dong Jia Shi , Pierre Morel , qemu-devel@nongnu.org On Wed, 20 Sep 2017 12:56:16 +0200 Halil Pasic wrote: > On 09/20/2017 09:58 AM, Cornelia Huck wrote: > > On Tue, 19 Sep 2017 20:27:43 +0200 > > Halil Pasic wrote: > > > >> Replace direct access which implicitly assumes no IDA > >> or MIDA with the new ccw data stream interface which should > >> cope with these transparently in the future. > >> > >> Signed-off-by: Halil Pasic > >> Reviewed-by: Pierre Morel > >> --- > >> hw/s390x/virtio-ccw.c | 157 +++++++++++++++----------------------------------- > >> 1 file changed, 46 insertions(+), 111 deletions(-) > >> > > > >> @@ -417,9 +382,9 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) > >> /* Return zeroes if the guest supports more feature bits. */ > >> features.features = 0; > >> } > >> - address_space_stl_le(&address_space_memory, ccw.cda, > >> - features.features, MEMTXATTRS_UNSPECIFIED, > >> - NULL); > >> + ccw_dstream_rewind(&sch->cds); > >> + cpu_to_le32s(&features.features); > >> + ccw_dstream_write(&sch->cds, features.features); > >> sch->curr_status.scsw.count = ccw.count - sizeof(features); > > > > Hm, didn't you want to convert these as well? Or do you plan to do it > > as an add-on patch? > > > > I plan to do it as an add on patch. OK, fine with me as well.