public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Emmanuel Lacour <elacour@easter-eggs.com>
Cc: kvm@vger.kernel.org
Subject: Re: Detect guest panic
Date: Tue, 18 Nov 2008 18:13:31 +0100	[thread overview]
Message-ID: <4922F7BB.6010501@siemens.com> (raw)
In-Reply-To: <20081118164922.GO1897@easter-eggs.com>

Emmanuel Lacour wrote:
> On Tue, Nov 18, 2008 at 09:39:35AM -0700, David Mair wrote:
>>>   
>> If the guest has a reachable IP address the simplest way might be to  
>> ping the guest from the host every so often and, if it stops responding  
>> for long enough to make you believe it has frozen, kill the qemu process  
>> and run it again. I suppose you could also expose the qemu console via a  
>> socket or other host file descriptor then you can have the pinging  
>> program on the host try to reset the guest without killing the qemu 
>> process.
>>
> 
> Thanks for your help, but ping is not enough, if it doesn't answer it
> doesn't mean that the WM is crashed, it can means that only the network
> is crashed (and I have this kind of problems too (see other recent
> thread for virtio_net ;)) and I have other fixes for those kind of
> problems.
> 
> Well I'm looking for some sort of "watchdog" kvm device ;)

nmi_watchdog=1 (NMI watchdog via IO-APIC) is working for Linux guests if
the host uses kvm-intel (kvm-amd is not yet implemented). Other OSes
that can exploit this trick as well should also be able to benefit from
it. There is just one open issue regarding NMIs for which a patch is
pending, but expect the next kvm release to include a fix.

Otherwise, you are free to define and implement some virt-watchdog (what
would be a hardware watchdog with a link to some reset pin in real
life), letting the emulation code trigger a system_reset when the timer
fires. You could also choose to emulate an existing watchdog interface
for which there are already drivers for your guest OS (we've done that
for virtualizing a custom board).

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux

  reply	other threads:[~2008-11-18 17:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18 15:36 Detect guest panic Emmanuel Lacour
2008-11-18 16:39 ` David Mair
2008-11-18 16:49   ` Emmanuel Lacour
2008-11-18 17:13     ` Jan Kiszka [this message]
     [not found] ` <9b51ffb30811181134q62ea322eo1b7addbffa4aeecd@mail.gmail.com>
2008-11-18 19:41   ` Fwd: " Roland Lammel

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=4922F7BB.6010501@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=elacour@easter-eggs.com \
    --cc=kvm@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox