Re: [PATCH] kvm: s390: Improve floating IRQ injection behavior

Janosch Frank <[email protected]>
Newsgroups org.kernel.vger.kvm,org.kernel.vger.linux-s390
Message-ID <[email protected]>
On 8/13/26 6:43 PM, Christian Borntraeger wrote:
> 
> 
> Am 13.08.26 um 16:56 schrieb Janosch Frank:
>    	kvm_s390_set_cpuflags(vcpu, CPUSTAT_WAIT);
>> @@ -1933,7 +1964,8 @@ static void __floating_irq_kick(struct kvm *kvm, u64 type)
>>    	for (sigcpu = kvm->arch.float_int.last_sleep_cpu; ; sigcpu++) {
>>    		sigcpu %= online_vcpus;
>>    		dst_vcpu = kvm_get_vcpu(kvm, sigcpu);
>> -		if (!is_vcpu_stopped(dst_vcpu))
>> +		if (!is_vcpu_stopped(dst_vcpu) &&
>> +		    deliverable_irqs(dst_vcpu))
> 
> We have the type. Wouldnt it be better to actually check if type is deliverable?
> 

Better yes, easier no.

I need to do the translation from the IRQ types that we have in the 
function to the pending types that deliverable_irqs() returns.
I'll send a v2 next week once I had some time to test the change.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.