qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: zhenwei pi <pizhenwei@bytedance.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	Michal Privoznik <mprivozn@redhat.com>
Cc: "libvir-list@redhat.com" <libvir-list@redhat.com>,
	Greg KH <gregkh@linuxfoundation.org>,
	qemu-devel@nongnu.org, linux-kernel@vger.kernel.org,
	"yelu@bytedance.com" <yelu@bytedance.com>
Subject: Re: [External] Re: discuss about pvpanic
Date: Wed, 8 Jan 2020 18:33:20 +0800	[thread overview]
Message-ID: <d915c9e6-1ad7-4f8f-a66a-c418d43e977f@bytedance.com> (raw)
In-Reply-To: <05c5fcc0-24bd-ae6e-6bb8-23970ab0b56c@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

On 1/8/20 6:05 PM, Paolo Bonzini wrote:

> On 08/01/20 10:58, Michal Privoznik wrote:
>>> the kernel-side patch certainly makes sense.  I assume that you want the
>>> event to propagate up from QEMU to Libvirt and so on?  The QEMU patch
>>> would need to declare a new event (qapi/misc.json) and send it in
>>> handle_event (hw/misc/pvpanic.c).  For Libvirt I'm not familiar, so I'm
>>> adding the respective list.
>> Adding an event is fairly easy, if everything you want libvirt to do is
>> report the event to upper layers. I volunteer to do it. Question is, how
>> qemu is going to report this, whether some attributes to GUEST_PANICKED
>> event or some new event.
> I think it should be a new event, using GUEST_PANICKED could cause upper
> layers to react by shutting down or rebooting the guest.
>
> Thanks,
>
> Paolo
>
>
In previous patch(https://lkml.org/lkml/2019/12/14/265), I defined a new bit (bit 1)
PVPANIC_CRASH_LOADED for guest crash loaded event. And suggested by KH Greg, I moved
the bit definition to an uapi header file.
Then QEMU could include the header file from linux header and handle the new event.

-- 
Thanks and Best Regards,
zhenwei pi


[-- Attachment #2: Type: text/html, Size: 1876 bytes --]

  reply	other threads:[~2020-01-08 10:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08  8:25 discuss about pvpanic zhenwei pi
2020-01-08  9:36 ` Paolo Bonzini
2020-01-08  9:58   ` Michal Privoznik
2020-01-08 10:05     ` Paolo Bonzini
2020-01-08 10:33       ` zhenwei pi [this message]
2020-01-08 12:14         ` [External] " Paolo Bonzini

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=d915c9e6-1ad7-4f8f-a66a-c418d43e977f@bytedance.com \
    --to=pizhenwei@bytedance.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=libvir-list@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mprivozn@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yelu@bytedance.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 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).