[PATCH] KVM: Use boot_cpu_data instead of current_cpu_data
authorAvi Kivity <avi@qumranet.com>
Sat, 30 Dec 2006 00:49:34 +0000 (16:49 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:43 +0000 (10:56 -0800)
commit1e885461f02259d75e7480a70d291d2d8aaa938e
tree775ae3f9cd24e5f428ffd7f225250f5c85450d00
parent2b7a52a459cb09864b736265bee1af5cef42af66
[PATCH] KVM: Use boot_cpu_data instead of current_cpu_data

current_cpu_data invokes smp_processor_id(), which is inadvisable when
preemption is enabled.  Switch to boot_cpu_data instead.

Resolves sourceforge bug 1621401.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/svm.c