From: Ingo Molnar Date: Sat, 6 Jan 2007 00:36:23 +0000 (-0800) Subject: [PATCH] KVM: Fix GFP_KERNEL alloc in atomic section bug X-Git-Tag: v2.6.20-rc4~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=965b58a550b6f84815cb555e6abb953e863f1610;p=pandora-kernel.git [PATCH] KVM: Fix GFP_KERNEL alloc in atomic section bug KVM does kmalloc() in an atomic section while having preemption disabled via vcpu_load(). Fix this by moving the ->*_msr setup from the vcpu_setup method to the vcpu_create method. (This is also a small speedup for setting up a vcpu, which can in theory be more frequent than the vcpu_create method). Signed-off-by: Ingo Molnar Signed-off-by: Avi Kivity Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed