[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 12/13] vfio/ccw: update sense data if a unit
From: |
Alex Williamson |
Subject: |
Re: [Qemu-devel] [PATCH v7 12/13] vfio/ccw: update sense data if a unit check is pending |
Date: |
Thu, 11 May 2017 15:49:15 -0600 |
On Fri, 5 May 2017 04:03:51 +0200
Dong Jia Shi <address@hidden> wrote:
> Concurrent-sense data is currently not delivered. This patch stores
> the concurrent-sense data to the subchannel if a unit check is pending
> and the concurrent-sense bit is enabled. Then a TSCH can retreive the
> right IRB data back to the guest.
>
> Signed-off-by: Dong Jia Shi <address@hidden>
> ---
Acked-by: Alex Williamson <address@hidden>
> hw/vfio/ccw.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
> index 3c8b518..73f326f 100644
> --- a/hw/vfio/ccw.c
> +++ b/hw/vfio/ccw.c
> @@ -94,6 +94,7 @@ static void vfio_ccw_io_notifier_handler(void *opaque)
> CcwDevice *ccw_dev = CCW_DEVICE(cdev);
> SubchDev *sch = ccw_dev->sch;
> SCSW *s = &sch->curr_status.scsw;
> + PMCW *p = &sch->curr_status.pmcw;
> IRB irb;
> int size;
>
> @@ -143,6 +144,12 @@ static void vfio_ccw_io_notifier_handler(void *opaque)
> /* Update control block via irb. */
> copy_scsw_to_guest(s, &irb.scsw);
>
> + /* If a uint check is pending, copy sense data. */
> + if ((s->dstat & SCSW_DSTAT_UNIT_CHECK) &&
> + (p->chars & PMCW_CHARS_MASK_CSENSE)) {
> + memcpy(sch->sense_data, irb.ecw, sizeof(irb.ecw));
> + }
> +
> read_err:
> css_inject_io_interrupt(sch);
> }
- Re: [Qemu-devel] [PATCH v7 10/13] s390x/css: introduce and realize ccw-request callback, (continued)
Re: [Qemu-devel] [PATCH v7 13/13] MAINTAINERS: Add vfio-ccw maintainer, Alex Williamson, 2017/05/11
[Qemu-devel] [PATCH v7 12/13] vfio/ccw: update sense data if a unit check is pending, Dong Jia Shi, 2017/05/04
- Re: [Qemu-devel] [PATCH v7 12/13] vfio/ccw: update sense data if a unit check is pending,
Alex Williamson <=
Re: [Qemu-devel] [PATCH v7 00/13] basic channel IO passthrough infrastructure based on vfio, Cornelia Huck, 2017/05/05