linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Eric B Munson <emunson@mgebm.net>
Cc: avi@redhat.com, mingo@redhat.com, hpa@zytor.com,
	ryanh@linux.vnet.ibm.com, aliguori@us.ibm.com,
	kvm@vger.kernel.org, linux-arch@vger.kernel.org, x86@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4 V13] Avoid soft lockup message when KVM is stopped by host
Date: Mon, 5 Mar 2012 13:39:43 -0300	[thread overview]
Message-ID: <20120305163943.GA10338@amt.cnet> (raw)
In-Reply-To: <20120214211720.GC6881@mgebm.net>

On Tue, Feb 14, 2012 at 04:17:20PM -0500, Eric B Munson wrote:
> On Tue, 14 Feb 2012, Marcelo Tosatti wrote:
> 
> > On Tue, Feb 14, 2012 at 10:50:13AM -0500, Eric B Munson wrote:
> > > On Tue, 14 Feb 2012, Marcelo Tosatti wrote:
> > > 
> > > > On Tue, Feb 14, 2012 at 10:29:31AM -0500, Eric B Munson wrote:
> > > > > On Wed, 08 Feb 2012, Eric B Munson wrote:
> > > > > 
> > > > > > 
> > > > > > When a guest kernel is stopped by the host hypervisor it can look like a soft
> > > > > > lockup to the guest kernel.  This false warning can mask later soft lockup
> > > > > > warnings which may be real.  This patch series adds a method for a host
> > > > > > hypervisor to communicate to a guest kernel that it is being stopped.  The
> > > > > > final patch in the series has the watchdog check this flag when it goes to
> > > > > > issue a soft lockup warning and skip the warning if the guest knows it was
> > > > > > stopped.
> > > > > > 
> > > > > > It was attempted to solve this in Qemu, but the side effects of saving and
> > > > > > restoring the clock and tsc for each vcpu put the wall clock of the guest behind
> > > > > > by the amount of time of the pause.  This forces a guest to have ntp running
> > > > > > in order to keep the wall clock accurate.
> > > > > 
> > > > > Avi,
> > > > > 
> > > > > Is this set fit for merging or is there something else you want changed?
> > > > 
> > > > Eric,
> > > > 
> > > > On Message-ID: <20120210160536.GA23363@amt.cnet>, i asked:
> > > > 
> > > > How is the stub getting included for other architectures again?
> > > > 
> > > 
> > > Marcelo,
> > > 
> > > Sorry, I put out V13 to answer that.  There is a stub in asm-generic that was
> > > lost in the V11-V12 rebase.  This stub has be included in the V13 set.
> > > 
> > > Eric
> > 
> > Eric, 
> > 
> > I know the stub has been included in the series. But i am asking how 
> > it is #include'ed for other architectures? (can't see that).
> 
> Marcelo,
> 
> kernel/watchdog.c now includes linux/kvm_para.h which includes asm/kvm_para.h.
> The check_and_clear function is defined in arch include/asm/kvm_para.h or in
> asm-generic/kvm_para.h for any arch lacking the specific header in their asm
> include dir.  If I have misunderstood how these headers work, please let me
> know and I will fix it.

There is no automatic inclusion of asm-generic/ headers. You must create
kvm_para.h in each architecture's include/asm/ directory, #including
asm-generic/kvm_para.h.

  parent reply	other threads:[~2012-03-05 16:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 15:07 [PATCH 0/4 V13] Avoid soft lockup message when KVM is stopped by host Eric B Munson
2012-02-08 15:07 ` Eric B Munson
2012-02-08 15:07 ` [PATCH 1/4 V13] Add flag to indicate that a vm was stopped by the host Eric B Munson
2012-02-08 15:07   ` Eric B Munson
2012-02-08 15:07 ` [PATCH 2/4 V13] Add functions to check if the host has stopped the vm Eric B Munson
2012-02-08 15:07   ` Eric B Munson
2012-02-10 16:05   ` Marcelo Tosatti
2012-02-08 15:07 ` [PATCH 3/4 V13] Add ioctl for KVM_KVMCLOCK_CTRL Eric B Munson
2012-02-08 15:07   ` Eric B Munson
2012-02-16 14:11   ` Avi Kivity
2012-02-08 15:07 ` [PATCH 4/4 V13] Add check for suspended vm in softlockup detector Eric B Munson
2012-02-08 15:07   ` Eric B Munson
2012-02-14 15:29 ` [PATCH 0/4 V13] Avoid soft lockup message when KVM is stopped by host Eric B Munson
2012-02-14 15:38   ` Marcelo Tosatti
2012-02-14 15:50     ` Eric B Munson
2012-02-14 15:50       ` Eric B Munson
2012-02-14 16:10       ` Marcelo Tosatti
2012-02-14 21:17         ` Eric B Munson
2012-02-14 21:17           ` Eric B Munson
2012-03-05 16:39           ` Marcelo Tosatti [this message]
2012-03-05 16:39             ` Marcelo Tosatti
2012-03-05 17:10             ` Eric B Munson
2012-03-05 17:10               ` Eric B Munson
2012-03-10 19:53             ` Eric B Munson

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=20120305163943.GA10338@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=emunson@mgebm.net \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=ryanh@linux.vnet.ibm.com \
    --cc=x86@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;
as well as URLs for NNTP newsgroup(s).