All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carsten Otte <cotte-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
To: "Dong, Eddie" <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org,
	kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	Jan Glauber1
	<jan.glauber-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>,
	Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Subject: Re: soft lockup after stop/cont
Date: Thu, 11 Oct 2007 12:57:38 +0200	[thread overview]
Message-ID: <470E01A2.104@de.ibm.com> (raw)
In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A02364AD6-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

Dong, Eddie wrote:
> kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:
>> Jim Paris wrote:
>>> If I stop KVM in the monitor with "stop", wait a minute, and do
>>> "cont", a Linux guest gives me a "BUG: soft lockup detected on
>>> CPU#0". Is that expected behavior?
>> We have the same behavior on s390 when running in a virtual
>> environment. The issue is, that the guest physical cpu may be
>> scheduled away while a timer runs down. I don't think there's anything
>> kvm could do better regerding the soft lockup code. Soft lockup is
>> just broken for virtualized environments and needs to be fixed. For
>> the time being, just disable it in kconfig.
>>
> This is a well known issue, but we can fix by syncing TSC with PIT etc.
> But doing this we need to froze guest TSC when a VP is descheduled.
> 
> We enable this in Xen but feel it is too complicated so never wanna
> to do same thing in KVM per previous discussion. There are some
> side effect of course due to this.
> 
> In Xen some time you will see PV domain soft lockup, but never in 
> hardware HVM :-)  Hopefully Linux will have pv timer soon.
Yes, virtual timers will be the right fix for it. I believe Jan has a 
patch for that. Am I mistaken Jan? [adding Jan to CC:]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

  parent reply	other threads:[~2007-10-11 10:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  8:01 soft lockup after stop/cont Jim Paris
     [not found] ` <20071010080152.GA27601-lSbMZ+N7itA@public.gmane.org>
2007-10-10  8:04   ` Avi Kivity
     [not found]     ` <470C87AB.6050900-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-10  8:50       ` Dong, Eddie
     [not found]         ` <10EA09EFD8728347A513008B6B0DA77A023643BD-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-10  9:09           ` Avi Kivity
     [not found]             ` <470C96B2.3080905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-10  9:11               ` Dong, Eddie
     [not found]                 ` <10EA09EFD8728347A513008B6B0DA77A02364404-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-10  9:18                   ` Avi Kivity
     [not found]                     ` <470C98EB.1080602-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-10  9:57                       ` Dong, Eddie
     [not found]                         ` <10EA09EFD8728347A513008B6B0DA77A0236442D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-10 10:06                           ` Avi Kivity
     [not found]                             ` <470CA429.2080607-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-11  1:17                               ` Dong, Eddie
2007-10-10 18:54       ` Jim Paris
     [not found]         ` <20071010185443.GA14525-lSbMZ+N7itA@public.gmane.org>
2007-10-11  9:03           ` Carsten Otte
     [not found]             ` <470DE6F8.9090801-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-10-11  9:29               ` Dong, Eddie
     [not found]                 ` <10EA09EFD8728347A513008B6B0DA77A02364AD6-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-11 10:57                   ` Carsten Otte [this message]
     [not found]                     ` <470E01A2.104-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-10-11 16:18                       ` Jan Glauber1

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=470E01A2.104@de.ibm.com \
    --to=cotte-ta70fqpds9bqt0dzr+alfa@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org \
    --cc=eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jan.glauber-tA70FqPdS9bQT0dZR+AlfA@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 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.