Re: [PATCH v3] x86/kvm: Use RCU for svm_vm_data_hash
From: Vasant Hegde
Date: Wed Dec 02 2026 - 05:10:42 EST
On 12/1/2026 11:28 AM, Sairaj Kodilkar wrote:
> GALOG notifier iterates svm_vm_data_hash to find the `struct kvm_vcpu`
> for the given vm id and vcpu id. Holding spinlock is not ideal here since
> it allows only a single reader to iterate over the hash. This degrades
> performance when interrupt rate is high and large number of readers are
> waiting for the spinlock. Hence replace spinlock with the RCU.
>
> Signed-off-by: Sairaj Kodilkar <sarunkod@xxxxxxx>
Looks good.
Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>
-Vasant