On Thu, Feb 27, 2014 at 05:58:46PM +0100, Paolo Bonzini wrote: > Il 27/02/2014 18:01, anthoine.bourgeois@xxxxxxxxx ha scritto: > >OK, so your patch works perfectly well with both of my test machines (a Ubuntu guest or > >a ChorusOS guest). > >I join the patch, can you signof it ? > > I'll post it tonight or tomorrow, thanks. I tested two cases: 1. Built a Fedora Kernel[a] and installed on both L0 and L1, booted an L2 guest successfully[b]. - I tried two things as L2 guest: (1) Run 'libguestfs-test-tool' that boots a minimal Kernel/initrd via 'libvirt' backend; (2) A regular Fedora-20 guest with QEMU command-line produced by libvirt. 2. Build KVM git with Paolo's patch, install the Kernel on L0 and L1; (and reboot both): $ git log | head -1 commit 404381c5839d67aa0c275ad1da96ef3d3928ca2c In this case, booting an L1 (guest hypervisor) itself results in the below stack trace for me: [. . .] [ 0.039000] task: ffff880216078000 ti: ffff880216056000 task.ti: ffff880216056000 [ 0.039000] RIP: 0010:[<ffffffff81ceab25>] [<ffffffff81ceab25>] intel_pmu_init+0x2d9/0x8e6 [ 0.039000] RSP: 0000:ffff880216057e40 EFLAGS: 00000202 [ 0.039000] RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000345 [ 0.039000] RDX: 0000000000000003 RSI: 0000000000000730 RDI: 0000ffffffffffff [ 0.039000] RBP: ffff880216057e48 R08: 0000000000000001 R09: 0000000000000007 [ 0.039000] R10: ffffffff81cc0c60 R11: ffff880216057c16 R12: ffffffff81ce9a4f [ 0.039000] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 0.039000] FS: 0000000000000000(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 [ 0.039000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.039000] CR2: ffff88021ffff000 CR3: 0000000001c0b000 CR4: 00000000001406f0 [ 0.039000] Stack: [ 0.039000] 0000000000000000 ffff880216057e98 ffffffff81ce9a88 0000000000000000 [ 0.039000] ffff88000009b000 ffff880216057e98 0000000000000000 ffffffff81ce9a4f [ 0.039000] 0000000000000000 0000000000000000 0000000000000000 ffff880216057f08 [ 0.039000] Call Trace: [ 0.039000] [<ffffffff81ce9a88>] init_hw_perf_events+0x39/0x51a [ 0.039000] [<ffffffff81ce9a4f>] ? check_bugs+0x2d/0x2d [ 0.039000] [<ffffffff81000332>] do_one_initcall+0xf2/0x140 [ 0.039000] [<ffffffff81cef22f>] ? native_smp_prepare_cpus+0x30c/0x32a [ 0.039000] [<ffffffff81ce2f19>] kernel_init_freeable+0xc4/0x1ec [ 0.039000] [<ffffffff817aa230>] ? rest_init+0x80/0x80 [ 0.039000] [<ffffffff817aa239>] kernel_init+0x9/0xf0 [ 0.039000] [<ffffffff817c307c>] ret_from_fork+0x7c/0xb0 [ 0.039000] [<ffffffff817aa230>] ? rest_init+0x80/0x80 [ 0.039000] Code: 61 fd ff 44 89 0d e4 61 fd ff 89 0d 9e 62 fd ff 7e 2b 83 e2 1f b8 03 00 00 00 b9 45 03 00 00 83 fa 02 0f 4f c2 89 05 ab 61 fd ff <0f> 32 48 c1 e2 20 89 c0 48 09 c2 48 89 15 49 62 fd ff e8 64 10 [ 0.039000] RIP [<ffffffff81ceab25>] intel_pmu_init+0x2d9/0x8e6 [ 0.039000] RSP <ffff880216057e40> [ 0.039013] ---[ end trace 6a1e6dd839222f3e ]--- [ 0.040007] swapper/0 (1) used greatest stack depth: 5720 bytes left [ 0.041008] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Thanks Paolo, for the fix. [a] http://koji.fedoraproject.org/koji/taskinfo?taskID=6577700 [b] http://kashyapc.fedorapeople.org/temp/stdout-libguestfs-test-tool-in-L1-28FEB2014.txt -- /kashyap -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html