[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 08/11] s390x/flic: introduce modify_ais_mode cal
From: |
Christian Borntraeger |
Subject: |
Re: [Qemu-devel] [PATCH 08/11] s390x/flic: introduce modify_ais_mode callback |
Date: |
Thu, 13 Jul 2017 09:12:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 07/12/2017 05:07 PM, Cornelia Huck wrote:
>> +
>> + switch (mode) {
>> + case SIC_IRQ_MODE_ALL:
>> + flic->simm &= ~AIS_MODE_MASK(isc);
>> + flic->nimm &= ~AIS_MODE_MASK(isc);
>> + break;
>> + case SIC_IRQ_MODE_SINGLE:
>> + flic->simm |= AIS_MODE_MASK(isc);
>> + flic->nimm &= ~AIS_MODE_MASK(isc);
>
> Can we have some documentation about the meaning of simm/nimm in qemu?
> The one from the patch description of the respective kernel patch would
> be fine.
Do you want to have that description as part of the patch description or
somewhere in the docs folder or somewhere in the code?
>
>> + break;
>> + default:
>> + return -EINVAL;
>> + }
>> +
>> + return 0;
>> +}
>> +
>>
>
> (...)
>
>> @@ -406,6 +427,7 @@ typedef struct KVMS390FLICStateClass {
>>
>> static void kvm_s390_flic_realize(DeviceState *dev, Error **errp)
>> {
>> + S390FLICState *fs = S390_FLIC_COMMON(dev);
>> KVMS390FLICState *flic_state = KVM_S390_FLIC(dev);
>> struct kvm_create_device cd = {0};
>> struct kvm_device_attr test_attr = {0};
>> @@ -438,6 +460,7 @@ static void kvm_s390_flic_realize(DeviceState *dev,
>> Error **errp)
>> flic_state->clear_io_supported = !ioctl(flic_state->fd,
>> KVM_HAS_DEVICE_ATTR, test_attr);
>>
>> + fs->ais_supported = false;
>
> The patch actually enabling this for kvm is in the next batch of
> patches, I assume?
yes, will hopefully come today.
- Re: [Qemu-devel] [PATCH 10/11] s390x/sic: realize SIC handling, (continued)
- [Qemu-devel] [PATCH 07/11] s390x: add flags field for registering I/O adapter, Christian Borntraeger, 2017/07/12
- [Qemu-devel] [PATCH 02/11] linux-headers: update to 4.13-rc0, Christian Borntraeger, 2017/07/12
- [Qemu-devel] [PATCH 09/11] s390x/flic: introduce inject_airq callback, Christian Borntraeger, 2017/07/12
- [Qemu-devel] [PATCH 06/11] s390x/cpumodel: provide compat handling for new cpu features, Christian Borntraeger, 2017/07/12
- [Qemu-devel] [PATCH 08/11] s390x/flic: introduce modify_ais_mode callback, Christian Borntraeger, 2017/07/12
[Qemu-devel] [PATCH 03/11] s390x/migration: Storage attributes device, Christian Borntraeger, 2017/07/12
[Qemu-devel] [PATCH 04/11] s390x/migration: Monitor commands for storage attributes, Christian Borntraeger, 2017/07/12