KVM: x86: Break kvm_for_each_vcpu loop after finding the VP_INDEX
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Thu, 27 Feb 2014 06:08:31 +0000 (15:08 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Feb 2014 18:25:39 +0000 (19:25 +0100)
commit684851a15744355f294ee3fee4ca2e9108382b47
tree55eb91ae4ea918cad66c744bdbb38b57730f908a
parent9cac38dd5dc41c943d711b96f9755a29c8b854ea
KVM: x86: Break kvm_for_each_vcpu loop after finding the VP_INDEX

No need to scan the entire VCPU array.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c