Re: [PATCH] KVM: x86/xen: Convert evtchn_ports from IDR to XArray

2026-08-31 Thread David Woodhouse
On 31 August 2026 06:59:50 BST, "Furkan Çalışkan"  
wrote:
>
>
>On 7/7/26 12:16, David Woodhouse wrote:
>> On Mon, 2026-07-06 at 11:13 +0300, Furkan Caliskan wrote:
>>> IDR is deprecated in favor of XArray: see
>>> Documentation/core-api/idr.rst. Convert evtchn_ports accordingly.
>>>
>>> kvm_xen_eventfd_assign()'s single-slot idr_alloc() becomes
>>> xa_insert(), since it was really an insert-at-index, not an
>>> allocation: -EBUSY replaces -ENOSPC, still mapped to -EEXIST.
>>>
>>> kvm_xen_hcall_evtchn_send() drops its explicit rcu_read_lock(),
>>> since xa_load() takes its own RCU read-side section internally.
>>> evtchnfd's lifetime is still guaranteed by kvm->srcu.
>>>
>>> xen_lock is left in place: it protects state beyond the map itself.
>>>
>>> Signed-off-by: Furkan Caliskan 
>> 
>> Reviewed-by: David Woodhouse 
>> 
>> Thanks.
>
>Ping?

I have a pile of Xen cleanups outstanding; I'll tack it on the end of that 
series so it doesn't get lost. Thanks.




Re: [PATCH] KVM: x86/xen: Convert evtchn_ports from IDR to XArray

2026-08-30 Thread Furkan Çalışkan



On 7/7/26 12:16, David Woodhouse wrote:
> On Mon, 2026-07-06 at 11:13 +0300, Furkan Caliskan wrote:
>> IDR is deprecated in favor of XArray: see
>> Documentation/core-api/idr.rst. Convert evtchn_ports accordingly.
>>
>> kvm_xen_eventfd_assign()'s single-slot idr_alloc() becomes
>> xa_insert(), since it was really an insert-at-index, not an
>> allocation: -EBUSY replaces -ENOSPC, still mapped to -EEXIST.
>>
>> kvm_xen_hcall_evtchn_send() drops its explicit rcu_read_lock(),
>> since xa_load() takes its own RCU read-side section internally.
>> evtchnfd's lifetime is still guaranteed by kvm->srcu.
>>
>> xen_lock is left in place: it protects state beyond the map itself.
>>
>> Signed-off-by: Furkan Caliskan 
> 
> Reviewed-by: David Woodhouse 
> 
> Thanks.

Ping?



Re: [PATCH] KVM: x86/xen: Convert evtchn_ports from IDR to XArray

2026-07-07 Thread David Woodhouse
On Mon, 2026-07-06 at 11:13 +0300, Furkan Caliskan wrote:
> IDR is deprecated in favor of XArray: see
> Documentation/core-api/idr.rst. Convert evtchn_ports accordingly.
> 
> kvm_xen_eventfd_assign()'s single-slot idr_alloc() becomes
> xa_insert(), since it was really an insert-at-index, not an
> allocation: -EBUSY replaces -ENOSPC, still mapped to -EEXIST.
> 
> kvm_xen_hcall_evtchn_send() drops its explicit rcu_read_lock(),
> since xa_load() takes its own RCU read-side section internally.
> evtchnfd's lifetime is still guaranteed by kvm->srcu.
> 
> xen_lock is left in place: it protects state beyond the map itself.
> 
> Signed-off-by: Furkan Caliskan 

Reviewed-by: David Woodhouse 

Thanks.


smime.p7s
Description: S/MIME cryptographic signature