qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* discuss about pvpanic
@ 2020-01-08  8:25 zhenwei pi
  2020-01-08  9:36 ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: zhenwei pi @ 2020-01-08  8:25 UTC (permalink / raw)
  To: pbonzini; +Cc: Greg KH, qemu-devel, linux-kernel, yelu@bytedance.com

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

Hey, Paolo

Currently, pvpapic only supports bit 0(PVPANIC_PANICKED).
We usually expect that guest writes ioport (typical 0x505) in panic_notifier_list callback
during handling panic, then we can handle pvpapic event PVPANIC_PANICKED in QEMU.

On the other hand, guest wants to handle the crash by kdump-tools, and reboots without any
panic_notifier_list callback. So QEMU only knows that guest has rebooted (because guest
write 0xcf9 ioport for RCR request), but QEMU can't identify why guest resets.

In production environment, we hit about 100+ guest reboot event everyday, sadly we
can't separate the abnormal reboot from normal operation.

We want to add a new bit for pvpanic event(maybe PVPANIC_CRASHLOADED) to represent the guest has crashed,
and the panic is handled by the guest kernel. (here is the previous patchhttps://lkml.org/lkml/2019/12/14/265)

What do you think about this solution? Or do you have any other suggestions?

-- 
Thanks and Best Regards,
zhenwei pi


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-01-08 12:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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       ` [External] " zhenwei pi
2020-01-08 12:14         ` Paolo Bonzini

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).