From: Alexander Graf <agraf@suse.de>
To: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Cc: "aik@au1.ibm.com" <aik@au1.ibm.com>,
Benjamin Herrenschmidt <benh@au1.ibm.com>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Anton Blanchard <anton@samba.org>
Subject: Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call
Date: Thu, 26 Jun 2014 11:22:50 +0200 [thread overview]
Message-ID: <53ABE66A.600@suse.de> (raw)
In-Reply-To: <87egyc2g7k.fsf@abhimanyu.in.ibm.com>
On 26.06.14 11:05, Nikunj A Dadhania wrote:
> Alexander Graf <agraf@suse.de> writes:
>
>>> Am 26.06.2014 um 09:55 schrieb Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>:
>>>
>>> Alexander Graf <agraf@suse.de> writes:
>>>
>>>>> On 25.06.14 13:27, Nikunj A Dadhania wrote:
>>>>> Alexander Graf <agraf@suse.de> writes:
>>>>>
>>>>> Let me put down my understanding:
>>>>>
>>>>> There are two possible way to handle kernel panic:
>>>>> 1) Kdump service running in guest - already working
>>>>> 2) Pass the kernel panic information to hypervisor - not there in Qemu
>>>>> pseries
>>>>>
>>>>> So without kdump service running, if linux kernel hits a panic, its going
>>>>> to check os-term and extended-os-term, only then its going to call
>>>>> os-term.
>>>> It's checking both for a reason. Find that reason.
>>> Here is what I figured out from PAPR:
>>>
>>> rtas ibm,os-term, does not gaurantee a return back to the guest cpu.
>>>
>>> If ibm,extended-os-term property is set rtas call return will always
>>> occur.
>> With your patch it doesn't occur.
> Hmm, you are right.
>
> + monitor_protocol_event(QEVENT_GUEST_PANICKED, data);
> + qobject_decref(data);
> + vm_stop(RUN_STATE_GUEST_PANICKED);
>
> So the issue here is using vm_stop. So if I do not do this I will be
> returning back to the guest.
>
> I was trying to enable:
>
> <on_crash> coredump-restart </on_crash>
> <on_crash> coredump-destroy </on_crash>
>
> in libvirt. But anyways, when libvirt receives these event, it will
> either destroy or restart the guest. So if I remove the vm_stop, there
> will be a return to the guest. And depending on the libvirt domain
> config a restart/destroy will take effect. Does this look ok?
I think that's closer to what Linux expects, yes. But I'd like to have
an ack on that approach from Ben or Anton.
Alex
prev parent reply other threads:[~2014-06-26 9:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 12:09 [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call Nikunj A Dadhania
2014-06-17 9:13 ` Alexander Graf
2014-06-17 9:30 ` Nikunj A Dadhania
2014-06-17 9:53 ` Alexander Graf
2014-06-17 9:59 ` Nikunj A Dadhania
2014-06-17 10:02 ` Alexander Graf
2014-06-17 10:19 ` Nikunj A Dadhania
2014-06-25 4:36 ` Nikunj A Dadhania
2014-06-25 11:03 ` Alexander Graf
2014-06-25 11:27 ` Nikunj A Dadhania
2014-06-25 11:32 ` Alexander Graf
2014-06-26 7:55 ` Nikunj A Dadhania
2014-06-26 8:04 ` Alexander Graf
2014-06-26 9:05 ` Nikunj A Dadhania
2014-06-26 9:22 ` Alexander Graf [this message]
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=53ABE66A.600@suse.de \
--to=agraf@suse.de \
--cc=aik@au1.ibm.com \
--cc=anton@samba.org \
--cc=benh@au1.ibm.com \
--cc=nikunj@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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).