From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com ([207.211.31.81]:27793 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727927AbfLMPxm (ORCPT ); Fri, 13 Dec 2019 10:53:42 -0500 Date: Fri, 13 Dec 2019 16:53:31 +0100 From: Cornelia Huck Subject: Re: [kvm-unit-tests PATCH v4 8/9] s390x: css: ssch/tsch with sense and interrupt Message-ID: <20191213165331.69cb8a34.cohuck@redhat.com> In-Reply-To: References: <1576079170-7244-1-git-send-email-pmorel@linux.ibm.com> <1576079170-7244-9-git-send-email-pmorel@linux.ibm.com> <20191212132634.3a16a389.cohuck@redhat.com> <1ea58644-9f24-f547-92d5-a99dcb041502@linux.ibm.com> <96034dbc-489a-7f76-0402-d5c0c42d20b3@linux.ibm.com> <20191213104350.6ebe4aa6.cohuck@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-s390-owner@vger.kernel.org List-ID: To: Pierre Morel Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org, frankja@linux.ibm.com, david@redhat.com, thuth@redhat.com On Fri, 13 Dec 2019 16:24:18 +0100 Pierre Morel wrote: > On 2019-12-13 10:43, Cornelia Huck wrote: > > On Thu, 12 Dec 2019 19:20:07 +0100 > > Pierre Morel wrote: > > =20 > >> On 2019-12-12 15:10, Pierre Morel wrote: =20 > >>> > >>> > >>> On 2019-12-12 13:26, Cornelia Huck wrote: =20 > >>>> On Wed, 11 Dec 2019 16:46:09 +0100 > >>>> Pierre Morel wrote: =20 > > =20 > >>>>> + > >>>>> +=C2=A0=C2=A0=C2=A0 senseid.cu_type =3D buffer[2] | (buffer[1] << 8= ); =20 > >>>> > >>>> This still looks odd; why not have the ccw fill out the senseid > >>>> structure directly? =20 > >>> > >>> Oh sorry, you already said and I forgot to modify this. > >>> thanks =20 > >> > >> hum, sorry, I forgot, the sense structure is not padded so I need this= . =20 > >=20 > > Very confused; I see padding in the senseid structure? (And what does > > padding have to do with it?) =20 >=20 > Sorry my fault: > I wanted to say packed and... I forgot to pack the senseid structure. > So I change this. Ah, good :) >=20 > >=20 > > Also, you only copy the cu type... it would really be much better if > > you looked at the whole structure you got back from the hypervisor; > > that would also allow you to do some more sanity checks etc. If you > > really can't pass in a senseid structure directly, just copy everything > > you got? > > =20 >=20 > No I can, just need to work properly ;) >=20 > I will only check on the cu_type but report_info() on all fields. Sounds good!