[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [Qemu-devel] [PATCH v3 6/7] s390x/kvm: handle AP instru
From: |
Halil Pasic |
Subject: |
Re: [qemu-s390x] [Qemu-devel] [PATCH v3 6/7] s390x/kvm: handle AP instruction interception |
Date: |
Mon, 26 Mar 2018 14:01:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/26/2018 11:03 AM, Pierre Morel wrote:
>>> +int ap_device_handle_pqap(S390CPU *cpu)
>>> +{
>>> + CPUS390XState *env = &cpu->env;
>>> + int fc = 4 & (env->regs[0] >> 24);
>>> +
>>> + /*
>>> + * The Query Configuration Information (QCI) function (fc == 4) does
>>> not
>>> + * set a response code in reg 1, so check for that along with the
>>> + * AP feature.
>>> + */
>>> + if ((fc != 4) && s390_has_feat(S390_FEAT_AP)) {
>>> + env->regs[1] = 0x10000;
>>> +
>>> + return 0;
>>> + }
>> This would imply an operation exception in case fc==4, which sounds very
>> wrong.
Yes, operation exception is a wrong response under the condition
(fc == 4) && s390_has_feat(S390_FEAT_AP).
@David:
FYI Tony is likely to respond after Wednesday as he is on vacation right
now.
>
> It depends but I think that the S390_FEAT_AP_QUERY_CONFIG_INFO must be tested
> to know what to answer.
> If the feature is there, QCI must be answered correctly.
>
> there are also some error situations to handle in all three functions.
>
I agree.
Regards,
Halil
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 4/7] s390x/kvm: interface to interpret AP instructions, (continued)
- [qemu-s390x] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Tony Krowiak, 2018/03/15
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Pierre Morel, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Halil Pasic, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Tony Krowiak, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Halil Pasic, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Tony Krowiak, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Halil Pasic, 2018/03/16
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Cornelia Huck, 2018/03/27
- Re: [qemu-s390x] [Qemu-devel] [PATCH v3 5/7] s390x/vfio: ap: Introduce VFIO AP device, Tony Krowiak, 2018/03/16
[qemu-s390x] [PATCH v3 2/7] s390x/ap: base Adjunct Processor (AP) object, Tony Krowiak, 2018/03/15