Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-13 Thread Jan Kiszka
Am 11.01.2011 11:29, Avi Kivity wrote: Please try out the attached patch. From f3a6041b5bb3bf7c88f9694a66d7f34be2f78845 Mon Sep 17 00:00:00 2001 From: Avi Kivity a...@redhat.com Date: Tue, 11 Jan 2011 12:15:54 +0200 Subject: [PATCH] KVM: Initialize fpu state in preemptible context

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-13 Thread Avi Kivity
On 01/13/2011 02:59 PM, Jan Kiszka wrote: @@ -5351,6 +5351,9 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) int r; sigset_t sigsaved; + if (!tsk_used_math(current) init_fpu(current)) + return -ENOMEM; + Could become a rainy day for the

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-11 Thread Avi Kivity
7c6fbfed72e7d22cbdf7393f9711d521e0fbb4a6 Mon Sep 17 00:00:00 2001 From: Kirill A. Shutemovkir...@shutemov.name Date: Mon, 10 Jan 2011 21:24:23 +0200 Subject: [PATCH] x86, fpu_alloc(): call kmem_cache_alloc() with GFP_ATOMIC [ 182.878328] BUG: sleeping function called from invalid context at mm/slub.c:793 [ 182.878339

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-11 Thread Avi Kivity
] BUG: sleeping function called from invalid context at mm/slub.c:793 [ 182.878339] in_atomic(): 1, irqs_disabled(): 0, pid: 4992, name: qemu [ 182.878355] Pid: 4992, comm: qemu Not tainted 2.6.37+ #31 [ 182.878361] Call Trace: [ 182.878381] [c104e317] ? __might_sleep+0xd0/0xd7

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-11 Thread Kirill A. Shutemov
run qemu with KVM enabled I get this in dmesg: [ 182.878328] BUG: sleeping function called from invalid context at mm/slub.c:793 [ 182.878339] in_atomic(): 1, irqs_disabled(): 0, pid: 4992, name: qemu [ 182.878355] Pid: 4992, comm: qemu Not tainted 2.6.37+ #31

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-11 Thread Pekka Enberg
On Tue, Jan 11, 2011 at 1:13 PM, Kirill A. Shutemov kir...@shutemov.name wrote: Please try out the attached patch. It helps. Reported-and-tested-by: Kirill A. Shutemov k...@openvz.org Acked-by: Pekka Enberg penb...@kernel.org -- To unsubscribe from this list: send the line unsubscribe kvm in

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-11 Thread Christoph Lameter
Reviewed-by: Christoph Lameter c...@linux.com -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-10 Thread Christoph Lameter
On Mon, 10 Jan 2011, Kirill A. Shutemov wrote: Every time I run qemu with KVM enabled I get this in dmesg: [ 182.878328] BUG: sleeping function called from invalid context at mm/slub.c:793 [ 182.878339] in_atomic(): 1, irqs_disabled(): 0, pid: 4992, name: qemu [ 182.878355] Pid: 4992

Re: BUG: sleeping function called from invalid context at mm/slub.c:793

2011-01-10 Thread Kirill A. Shutemov
On Mon, Jan 10, 2011 at 10:52:05AM -0600, Christoph Lameter wrote: On Mon, 10 Jan 2011, Kirill A. Shutemov wrote: Every time I run qemu with KVM enabled I get this in dmesg: [ 182.878328] BUG: sleeping function called from invalid context at mm/slub.c:793 [ 182.878339] in_atomic