]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Fix hang on uniprocessor
authorMarko Kohtala <marko.kohtala@gmail.com>
Sun, 2 Dec 2007 11:18:43 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:50:56 +0000 (09:50 -0800)
commit86a1b7f0192d2f66a302a681fd76ce701f711953
tree3764395bb5d36e4eacd236da89272b83bbcd0ec1
parente124b02477867e05ba4bc12a1a22b17a537028a8
KVM: Fix hang on uniprocessor

This is not in mainline, as it was fixed differently in that tree.

first_cpu(cpus) returns the only CPU when NR_CPUS is 1 regardless of
the cpus mask. Therefore we avoid a kernel hang in
KVM_SET_MEMORY_REGION ioctl on uniprocessor by not entering the loop at
all.

Signed-off-by: Marko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/kvm/kvm_main.c