public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Balaji Rao <balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Joerg Roedel" <joerg.roedel-5C7GfCeVMHo@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [RFC] nmi watchdog in kvm
Date: Mon, 28 Jan 2008 22:00:40 +0530	[thread overview]
Message-ID: <200801282200.40590.balajirrao@gmail.com> (raw)
In-Reply-To: <20080128150032.GF6960-5C7GfCeVMHo@public.gmane.org>

On Monday 28 January 2008 08:30:32 pm Joerg Roedel wrote:
> On Mon, Jan 28, 2008 at 08:12:26PM +0530, Balaji Rao wrote:
> > On Monday 28 January 2008 05:59:25 pm Joerg Roedel wrote:
> > > This patch kills the ability of KVM to migrate between AMD and Intel
> > > because the Intel performance counters are not available on AMD and
> > > vice verca.
> >
> > Yes. The way we should solve this is by emulating the MSRs. Am not sure
> > about the overhead involved. What are your thoughts on this ?
>
> I think you can't do this with performance counters in KVM (except you
> emulate the Intel PerfCtrs on AMD and the AMD PerfCtrs on Intel, which
> might not be possible, at least very painfull). I think the best
> solution to implement a watchdog for KVM is to implement another NMI
> source, e.g. emulating a watchdog PCI card in QEMU.
>
Yes, it would be painful to emulate non native perform counters.. 

But having a PCI device for generating NMIs would solve the problem of NMI 
Watchdogs. But we still wouldn't be able to provide perfmon counters to the 
guest.. But before that, we need to decide whether it is needed to provide 
perfmon counters to the guest or not. 

To make the guest use QEmu's PCI we need to pass another kernel param (say, 
nmi_watchdog=3) which is not very nice.So, can't we implement NMI watchdog 
using paravirt ? 

Or the other option would be to probe for the NMI Watchdog PCI card before 
trying to use other means of generating NMIs..

Could anyone please point me to any docs on writing a QEmu PCI device driver ?

regards,
balaji rao

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  parent reply	other threads:[~2008-01-28 16:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28  8:18 [RFC] nmi watchdog in kvm Balaji Rao
     [not found] ` <200801281348.41010.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-28 10:57   ` Ingo Molnar
2008-01-28 12:29   ` Joerg Roedel
     [not found]     ` <20080128122925.GA11803-5C7GfCeVMHo@public.gmane.org>
2008-01-28 14:42       ` Balaji Rao
     [not found]         ` <200801282012.26225.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-28 15:00           ` Joerg Roedel
     [not found]             ` <20080128150032.GF6960-5C7GfCeVMHo@public.gmane.org>
2008-01-28 16:30               ` Balaji Rao [this message]
2008-01-30 10:43   ` Avi Kivity
     [not found]     ` <47A054EE.6010408-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 14:22       ` Balaji Rao
     [not found]         ` <200801301952.57604.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-30 14:39           ` Avi Kivity
     [not found]             ` <47A08C24.8040505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 15:02               ` Balaji Rao
     [not found]                 ` <200801302032.01603.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-30 15:13                   ` Avi Kivity

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=200801282200.40590.balajirrao@gmail.com \
    --to=balajirrao-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=joerg.roedel-5C7GfCeVMHo@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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