[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue In
From: |
Cornelia Huck |
Subject: |
Re: [qemu-s390x] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control |
Date: |
Fri, 30 Nov 2018 09:36:40 +0100 |
On Thu, 29 Nov 2018 16:53:28 -0500
Tony Krowiak <address@hidden> wrote:
> On 11/22/18 11:35 AM, Pierre Morel wrote:
> > +static uint32_t ap_pqap_clear_irq(VFIODevice *vdev, APQueue *apq)
> > +{
> > + struct vfio_ap_aqic param;
> > + uint32_t retval;
> > +
> > + param.apqn = apq->apqn;
> > + param.isc = apq->isc;
> > + param.argsz = sizeof(param);
> > +
> > + retval = ioctl(vdev->fd, VFIO_AP_CLEAR_IRQ, ¶m);
> > + switch (retval) {
> > + case 0: /* Fall through and return the instruction status */
>
> Unnecessary comment, we can see the code is going to fall through and
> return status. Sorry, I know its a nit.
FWIW, some static code checking tools look for annotations like
/* Fallthrough */ as an indication that a fallthrough is actually
intended and not a coding error.
- Re: [qemu-s390x] [PATCH v2 2/6] s390x/vfio: ap: Use the APdevice as a child of the APBus, (continued)
[qemu-s390x] [PATCH v2 1/6] s390x/vfio: ap: Finding the AP bridge, Pierre Morel, 2018/11/22
[qemu-s390x] [PATCH v2 3/6] s390x/vfio: ap: Linux uapi VFIO place holder, Pierre Morel, 2018/11/22
[qemu-s390x] [PATCH v2 5/6] s390x/vfio: ap: Definition for AP Adapter type, Pierre Morel, 2018/11/22
[qemu-s390x] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control, Pierre Morel, 2018/11/22
Re: [qemu-s390x] [Qemu-devel] [PATCH v2 0/6] s390x/vfio: VFIO-AP interrupt control interception, Halil Pasic, 2018/11/29