From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1c6-0005e8-To for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:27:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz1c5-00045n-H1 for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:27:34 -0400 Received: from mail-gh0-f173.google.com ([209.85.160.173]:33082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1c5-00045j-DI for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:27:33 -0400 Received: by ghrr17 with SMTP id r17so483471ghr.4 for ; Wed, 08 Aug 2012 01:27:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1344351173-2716-3-git-send-email-cornelia.huck@de.ibm.com> References: <1344351173-2716-1-git-send-email-cornelia.huck@de.ibm.com> <1344351173-2716-3-git-send-email-cornelia.huck@de.ibm.com> Date: Wed, 8 Aug 2012 09:27:32 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: linux-s390 , Anthony Liguori , Marcelo Tosatti , KVM , Carsten Otte , Heiko Carstens , Rusty Russell , Sebastian Ott , qemu-devel , Alexander Graf , Christian Borntraeger , Avi Kivity , Martin Schwidefsky On 7 August 2012 15:52, Cornelia Huck wrote: > +static void sch_handle_clear_func(SubchDev *sch) > +{ > + struct pmcw *p = &sch->curr_status.pmcw; > + struct scsw *s = &sch->curr_status.scsw; > + int path; > + > + /* Path management: In our simple css, we always choose the only path. */ > + path = 0x80; > + > + /* Reset values prior to 'issueing the clear signal'. */ > + p->lpum = 0; This is unnecessary since we're going to set p->lpum to something else about ten lines later, right? > + p->pom = 0xff; > + s->pno = 0; > + > + /* We always 'attempt to issue the clear signal', and we always succeed. */ > + sch->orb = NULL; > + sch->channel_prog = NULL; > + sch->last_cmd = NULL; > + s->actl &= ~SCSW_ACTL_CLEAR_PEND; > + s->stctl |= SCSW_STCTL_STATUS_PEND; > + > + s->dstat = 0; > + s->cstat = 0; > + p->lpum = path; > + > +} -- PMM