summaryrefslogtreecommitdiff
path: root/firmware/edgeport
diff options
context:
space:
mode:
authorGreg Kurz <gkurz@linux.vnet.ibm.com>2016-05-09 19:11:54 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-11 23:37:53 +0300
commit9b9e3fc4d5a31f6050508f2404369beac4356867 (patch)
treecc2cf66306c5c256d8b3b30daaf2e40dfd866b9b /firmware/edgeport
parentbdb4094eb57aeab6683ea9c90d8b29271bf34405 (diff)
downloadlinux-9b9e3fc4d5a31f6050508f2404369beac4356867.tar.xz
KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS
Commit c896939f7cff ("KVM: use heuristic for fast VCPU lookup by id") added a return path that prevents vcpu ids to exceed KVM_MAX_VCPUS. This is a problem for powerpc where vcpu ids can grow up to 8*KVM_MAX_VCPUS. This patch simply reverses the logic so that we only try fast path if the vcpu id can be tried as an index in kvm->vcpus[]. The slow path is not affected by the change. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'firmware/edgeport')
0 files changed, 0 insertions, 0 deletions