[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support.
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support. |
Date: |
Wed, 8 Aug 2012 10:53:12 +0200 |
On Wed, 8 Aug 2012 09:27:32 +0100
Peter Maydell <address@hidden> wrote:
> On 7 August 2012 15:52, Cornelia Huck <address@hidden> 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?
My intention here was following the description in the architecture
closely. In our case, 'attempting to issue the clear signal' will
always succeed, and so we will always set the lpum later on - on real
hardware, this may be different.
>
> > + 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
>
- [Qemu-devel] [RFC PATCH 0/5] qemu: s390: virtual css and virtio-ccw, Cornelia Huck, 2012/08/07
- [Qemu-devel] [PATCH 1/5] Update headers for upcoming s390 changes., Cornelia Huck, 2012/08/07
- [Qemu-devel] [PATCH 4/5] s390: Virtual channel subsystem support for !KVM., Cornelia Huck, 2012/08/07
- [Qemu-devel] [PATCH 3/5] s390: Add new channel I/O based virtio transport., Cornelia Huck, 2012/08/07
- [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support., Cornelia Huck, 2012/08/07
- [Qemu-devel] [PATCH 5/5] [HACK] Handle multiple virtio aliases., Cornelia Huck, 2012/08/07