logo       

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

emulators.kvm.devel

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

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise