Re: [PATCH v3 10/12] KVM: s390: activate GISA for emulated interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 01/25/2018 06:38 PM, David Hildenbrand wrote:
> On 25.01.2018 18:06, Christian Borntraeger wrote:
>> From: Michael Mueller <mimu@xxxxxxxxxxxxxxxxxx>
>>
>> If the AIV facility is available, a GISA will be used to manage emulated
>> adapter interrupts.
>>
>> Signed-off-by: Michael Mueller <mimu@xxxxxxxxxxxxxxxxxx>
>> Reviewed-by: Halil Pasic <pasic@xxxxxxxxxxxxxxxxxx>
>> Reviewed-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>
>> Signed-off-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>
>> ---
>>  arch/s390/kvm/interrupt.c | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
>> index 1a561ad..ec4b7bf 100644
>> --- a/arch/s390/kvm/interrupt.c
>> +++ b/arch/s390/kvm/interrupt.c
>> @@ -2840,7 +2840,13 @@ void kvm_s390_gisa_clear(struct kvm *kvm)
>>  
>>  void kvm_s390_gisa_init(struct kvm *kvm)
>>  {
>> -	/* not implemented yet */
>> +	if (!css_general_characteristics.aiv)
>> +		kvm->arch.gisa = NULL;
>> +	else {
> 
> Hmm, isn't it NULL as default?
> 
> if (css_general_characteristics.aiv) {

Indeed kvm arch is zero allocated. Will drop.

> 
> ...
> 
> Anyhow,
> 
> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

Thanks. I will add these patches for my next pull request for the next
merge window. Last chance to review the other patches (see v2).



> 
>> +		kvm->arch.gisa = &kvm->arch.sie_page2->gisa;
>> +		VM_EVENT(kvm, 3, "gisa 0x%pK initialized", kvm->arch.gisa);
>> +		kvm_s390_gisa_clear(kvm);
>> +	}
>>  }
>>  
>>  void kvm_s390_gisa_destroy(struct kvm *kvm)
>>
> 
> 




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux