On Fri, 17 Jun 2011, Sasha Levin wrote:
Implement the keyboard reset method which allows guest kernel to reboot the guest using the keyboard controller. This will allow guest kernel to reboot the guest when it needs to, for example - kernel panic (when passing "panic=1" as kernel parameter). Based on Pekka Enberg's patch. Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
Does this work for you? For me it get stuck with this: [ 0.833234] Rebooting in 1 seconds.. # # vCPU #0's dump: # Registers: ---------- rip: ffffffff8106130a rsp: ffff880013c03f88 flags: 0000000000000046 rax: ffffffff81c15300 rbx: ffffffff81c00010 rcx: 0000000031798af5 rdx: 0000000000000000 rsi: 00000000000000ff rdi: 00000000000000f0 rbp: ffff880013c03f88 r8: 0000000000000000 r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000001 r12: 0000000000000000 r13: 0000000000000000 r14: ffffffffffffffff r15: 0000000000013d70 cr0: 000000008005003b cr2: 0000000000000000 cr3: 0000000001c03000 cr4: 00000000000006f0 cr8: 0000000000000000 Segment registers: ------------------ register selector base limit type p dpl db s l g avl cs 0010 0000000000000000 ffffffff 0b 1 0 0 1 1 1 0 ss 0018 0000000000000000 ffffffff 03 1 0 1 1 0 1 0 ds 0000 0000000000000000 ffffffff 00 0 0 0 0 0 0 0 es 0000 0000000000000000 ffffffff 00 0 0 0 0 0 0 0 fs 0000 0000000000000000 ffffffff 00 0 0 0 0 0 0 0 gs 0000 ffff880013c00000 ffffffff 00 0 0 0 0 0 0 0 tr 0040 ffff880013c0ec00 00002087 0b 1 0 0 0 0 0 0 ldt 0000 0000000000000000 ffffffff 00 0 0 0 0 0 0 0 gdt ffff880013c04000 0000007f idt ffffffff81da7000 00000fff APIC: ----- efer: 0000000000000d01 apic base: 00000000fee00900 nmi: enabled Interrupt bitmap: ----------------- 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Code: ----- rip: [<ffffffff8106130a>] <unknown> Stack: ------ which seems to be in native_halt: ffffffff81061300 t native_halt ffffffff81061310 t native_clts -- 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