All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Alexander Graf <agraf@suse.de>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>,
	Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	Carsten Otte <cotte@de.ibm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	KVM <kvm@vger.kernel.org>,
	linux-s390 <linux-s390@vger.kernel.org>
Subject: Re: [PATCH 1/3] s390/kvm: Set CPU in stopped state on initial cpu reset
Date: Mon, 11 Jun 2012 21:11:42 +0200	[thread overview]
Message-ID: <4FD642EE.30800@de.ibm.com> (raw)
In-Reply-To: <4FD620F3.4050405@suse.de>

On 11/06/12 18:46, Alexander Graf wrote:
> On 06/11/2012 04:06 PM, Cornelia Huck wrote:
>> From: Christian Borntraeger<borntraeger@de.ibm.com>
>>
>> The initial cpu reset sets the cpu in the stopped state.
>> Several places check for the cpu state (e.g. sigp set prefix) and
>> not setting the STOPPED state triggered errors with newer guest
>> kernels after reboot.
>>
>> Signed-off-by: Christian Borntraeger<borntraeger@de.ibm.com>
>> Signed-off-by: Cornelia Huck<cornelia.huck@de.ibm.com>
> 
> Is this only broken as of now or has this been broken before? So do we need to send this to -stable for anyone? And what happens on RESET?

Looks like this problem appeared as a combination of newer guest kernels
(something like >=3.2 or so) with a reworked SMP bringup behaviour and a 
host fix (151104a7b3a82f9c56d636595ae58084049d2559 KVM: s390: make sigp 
restart return busy when stop pending)
which both are correct in itself but uncovered this third problem.

With this patch I have a qemu/kernel combination which works reliably with different
guest kernels for guest initiated resets as well as qemu monitor system_reset
as well as system_shutdown+system_reset+cont. It will probably not be the last
fix (e.g. initial reset should also take care of pending CPU local interrupts)
but we are making progress.

Christian

PS: The working combination has two patches pending for qemu which need some
cleanup, will send soon

  reply	other threads:[~2012-06-11 19:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11 14:06 [PATCH 0/3] kvm/s390 patches for 3.6 Cornelia Huck
2012-06-11 14:06 ` [PATCH 1/3] s390/kvm: Set CPU in stopped state on initial cpu reset Cornelia Huck
2012-06-11 16:46   ` Alexander Graf
2012-06-11 19:11     ` Christian Borntraeger [this message]
2012-06-11 14:06 ` [PATCH 2/3] kvm: trace events: update list of exit reasons Cornelia Huck
2012-06-11 15:39   ` Alexander Graf
2012-06-11 16:00     ` Cornelia Huck
2012-06-11 16:00       ` Cornelia Huck
2012-06-11 16:21       ` Alexander Graf
2012-06-11 16:33         ` Cornelia Huck
2012-06-11 16:39         ` [PATCH 2/3] kvm: trace events: update list of exit reasons (v2) Cornelia Huck
2012-06-11 16:45           ` Alexander Graf
2012-06-11 14:06 ` [PATCH 3/3] s390/kvm: Perform early event mask processing during boot Cornelia Huck
2012-06-11 16:46   ` Alexander Graf
2012-06-11 18:41     ` Christian Borntraeger
2012-06-11 19:45       ` Alexander Graf
2012-06-13 23:54 ` [PATCH 0/3] kvm/s390 patches for 3.6 Marcelo Tosatti

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=4FD642EE.30800@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=cotte@de.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=schwidefsky@de.ibm.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.