[PATCH 3/4] KVM: use heuristic for fast VCPU lookup by id
From: David HildenbrandUsually, VCPU ids match the array index. So let's try a fast lookup first before falling back to the slow iteration. Suggested-by: Christian Borntraeger Reviewed-by: Dominik Dingel Reviewed-by:
[PATCH 3/4] KVM: use heuristic for fast VCPU lookup by id
From: David HildenbrandUsually, VCPU ids match the array index. So let's try a fast lookup first before falling back to the slow iteration. Suggested-by: Christian Borntraeger Reviewed-by: Dominik Dingel Reviewed-by: