From: Sasha Levin <levinsasha928@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com,
gorcunov@gmail.com, prasadjoshi124@gmail.com
Subject: Re: [PATCH] kvm tools: Implement keyboard reset method
Date: Fri, 17 Jun 2011 10:17:02 -0400 [thread overview]
Message-ID: <1308320222.8711.9.camel@lappy> (raw)
In-Reply-To: <alpine.DEB.2.00.1106171647350.6381@tiger>
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@gmail.com>
>
> 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.
next prev parent reply other threads:[~2011-06-17 14:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 13:13 [PATCH] kvm tools: Implement keyboard reset method Sasha Levin
2011-06-17 13:50 ` Pekka Enberg
2011-06-17 14:17 ` Sasha Levin [this message]
2011-06-17 19:16 ` Pekka Enberg
2011-06-17 19:26 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308320222.8711.9.camel@lappy \
--to=levinsasha928@gmail.com \
--cc=asias.hejun@gmail.com \
--cc=gorcunov@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@kernel.org \
--cc=prasadjoshi124@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.