Re: [PATCH v5 1/7] s390: ap: kvm: add PQAP interception for AQIC

From: Halil Pasic
Date: Fri Mar 15 2019 - 13:44:09 EST


On Fri, 15 Mar 2019 15:10:25 +0100
Pierre Morel <pmorel@xxxxxxxxxxxxx> wrote:

> Sorry, wrong conclusion, handling this in userland will bring us much
> too far if we want to answer correctly for the case the hook is not
> there but QEMU accepted the facility for AQIC.
>
> The alternative is easier, we just continue to respond with the
> OPERATION exception here and only handle the specification and
> privileged exception cases in QEMU and in the hook.

I don't quite understand what do you mean by this paragraph. Especially
not what do you mean by 'just continue to respond with the OPERATION
exception here'.

In any case if the guest is supposed to have ap instructions, and does
not have facility 65 the right answer is specification and not operation
exception. And this has to work regardless of vfio-ap module loaded or
not.

Regards,
Halil

>
> So, I think the discussion will go on until you come back :)
>
> Regards,
> Pierre