diff mbox

[v1,1/5] s390x/kvm: Enable AIS from CPU model always

Message ID 1507124979-8880-2-git-send-email-pmorel@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Pierre Morel Oct. 4, 2017, 1:49 p.m. UTC
As this patchset will introduce AIS emulation, we always enable
Adapter Interrupt Suppression, depending only from the CPU model.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
---
 target/s390x/kvm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Cornelia Huck Oct. 9, 2017, 9:09 a.m. UTC | #1
On Wed,  4 Oct 2017 15:49:35 +0200
Pierre Morel <pmorel@linux.vnet.ibm.com> wrote:

> As this patchset will introduce AIS emulation, we always enable
> Adapter Interrupt Suppression, depending only from the CPU model.
> 
> Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
> ---
>  target/s390x/kvm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
> index 931b85f..06fe56d 100644
> --- a/target/s390x/kvm.c
> +++ b/target/s390x/kvm.c
> @@ -2807,6 +2807,7 @@ void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)
>      if (pci_available) {
>          set_bit(S390_FEAT_ZPCI, model->features);
>      }
> +    set_bit(S390_FEAT_ADAPTER_INT_SUPPRESSION, model->features);
>      set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features);
>  
>      if (s390_known_cpu_type(cpu_type)) {

I would move that patch until after emulation has actually been
provided.
Pierre Morel Oct. 9, 2017, 1:58 p.m. UTC | #2
On 09/10/2017 11:09, Cornelia Huck wrote:
> On Wed,  4 Oct 2017 15:49:35 +0200
> Pierre Morel <pmorel@linux.vnet.ibm.com> wrote:
> 
>> As this patchset will introduce AIS emulation, we always enable
>> Adapter Interrupt Suppression, depending only from the CPU model.
>>
>> Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
>> ---
>>   target/s390x/kvm.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
>> index 931b85f..06fe56d 100644
>> --- a/target/s390x/kvm.c
>> +++ b/target/s390x/kvm.c
>> @@ -2807,6 +2807,7 @@ void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)
>>       if (pci_available) {
>>           set_bit(S390_FEAT_ZPCI, model->features);
>>       }
>> +    set_bit(S390_FEAT_ADAPTER_INT_SUPPRESSION, model->features);
>>       set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features);
>>   
>>       if (s390_known_cpu_type(cpu_type)) {
> 
> I would move that patch until after emulation has actually been
> provided.
> 

Yes, clear.

Thanks,
Pierre
diff mbox

Patch

diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
index 931b85f..06fe56d 100644
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
@@ -2807,6 +2807,7 @@  void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)
     if (pci_available) {
         set_bit(S390_FEAT_ZPCI, model->features);
     }
+    set_bit(S390_FEAT_ADAPTER_INT_SUPPRESSION, model->features);
     set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features);
 
     if (s390_known_cpu_type(cpu_type)) {