Re: [PATCH] kvm tools: Implement keyboard reset method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2011-06-17 at 16:50 +0300, Pekka Enberg wrote:
> 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
> 

Yes:
[    1.844359] Rebooting in 1 seconds..
  # KVM session ended normally.

Can you try passing "reboot=k" as an additional kernel parameter and see
if it works then? Maybe keyboard reset isn't set as default.

-- 

Sasha.

--
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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux