Re: [patch] kvm: fix GFP_KERNEL alloc in atomic section bug

From: Avi Kivity
Date: Thu Dec 28 2006 - 07:45:05 EST


Ingo Molnar wrote:
Subject: [patch] kvm: fix GFP_KERNEL alloc in atomic section bug
From: Ingo Molnar <mingo@xxxxxxx>

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 <mingo@xxxxxxx>

Applied, thanks.


--
error compiling committee.c: too many arguments to function

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/