Re: [Qemu-devel] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control

2018-11-30 Thread Pierre Morel
On 29/11/2018 22:53, Tony Krowiak wrote: On 11/22/18 11:35 AM, Pierre Morel wrote: We intercept the PQAP(AQIC) instruction and transform ... +static int ap_pqap_aqic(CPUS390XState *env) +{ +    uint64_t g_nib = env->regs[2]; +    uint8_t apid = ap_reg_get_apid(env->regs[0]); +    uint8_t

Re: [Qemu-devel] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control

2018-11-30 Thread Cornelia Huck
On Thu, 29 Nov 2018 16:53:28 -0500 Tony Krowiak 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; > > +

Re: [Qemu-devel] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control

2018-11-29 Thread Tony Krowiak
On 11/22/18 11:35 AM, Pierre Morel wrote: We intercept the PQAP(AQIC) instruction and transform the guest's AQIC command parameters for the host AQIC parameters. Doing this we use the standard adapter interface to provide the adapter NIB, indicator and ISC. We define new structures, APCard and

[Qemu-devel] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control

2018-11-22 Thread Pierre Morel
We intercept the PQAP(AQIC) instruction and transform the guest's AQIC command parameters for the host AQIC parameters. Doing this we use the standard adapter interface to provide the adapter NIB, indicator and ISC. We define new structures, APCard and APQueue to keep track of the ISC, route and