Re: [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- From: Luca <kronos.it@xxxxxxxxx>
- Date: Sun, 31 Dec 2006 18:58:11 +0100
On 12/31/06, Avi Kivity <avi@xxxxxxxxxxxx> wrote:
Luca Tettamanti wrote:
> Hello,
> I'm testing KVM on a Core2 CPU. I'm running kernel 2.6.20-git (pulled
> few hours ago), configured with SMP and PREEMPT.
>
> I'm hitting 2 different warnings:
> BUG: using smp_processor_id() in preemptible [00000001] code: kvm/7726
> caller is vmx_create_vcpu+0x9/0x2f [kvm_intel]
[...]
> Second one:
> BUG: sleeping function called from invalid context at
> /home/kronos/src/linux-2.6.git/mm/slab.c:3034
> in_atomic():1, irqs_disabled():0
> 1 lock held by kvm/12706:
> #0: (&vcpu->mutex){--..}, at: [<f1b68d02>] kvm_dev_ioctl+0x113/0xf97
> [kvm]
> [<b015c32a>] kmem_cache_alloc+0x1b/0x6f
>
[...]
There are patches for both (I think) flying around. They should land in
Linus' tree in a few days.
Ah, I just saw them on lkml...
Luca
-
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/
- References:
- [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- From: Luca Tettamanti
- Re: [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- From: Avi Kivity
- [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- Prev by Date: compile failure on 2.6.19
- Next by Date: Re: [PATCH 1/1] Char: tty_wakeup cleanup
- Previous by thread: Re: [KVM][PATCH] smp_processor_id() and sleeping functions used in invalid context
- Next by thread: Using _syscall3 to manipulate files in a driver
- Index(es):
Relevant Pages
- [PATCH, local root on 2.4, 2.6?] compute_creds race
... A detaches from B (on preempt or SMP). ... It should also make
life easier for LSMs and will certainly ... selinux part -- I haven't compiled it,
... (Linux-Kernel) - Re: test9 and bluetooth
... > please try this with a non SMP kernel and/or a non preempt kernel. ...
> you have enabled the Bluetooth SCO support for the HCI USB driver? ... (Linux-Kernel) - 2.6.17-rt1 : x86_64 oops
... compilation problem and a bunch of warnings in slab.c. ... | preempt
count: 00000001] ... The compilation and warning fix patch is below. ...
(Linux-Kernel) - Re: BUG when removing USB flash drive
... > Can you test the latest -mm tree and see if it fixes this problem for ...
SMP and preempt just in case). ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U7
... PREEMPT SMP ... 4-level deep critical section nesting: ... send
the line "unsubscribe linux-kernel" in ... (Linux-Kernel)