mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
191941692a
Some users prefer kdump tools to generate guest kernel dumpfile, at the same time, need a out-of-band kernel panic event. Currently if booting guest kernel with 'crash_kexec_post_notifiers', QEMU will receive PVPANIC_PANICKED event and stop VM. If booting guest kernel without 'crash_kexec_post_notifiers', guest will not call notifier chain. Add PVPANIC_CRASH_LOADED bit for pvpanic event, it means that guest kernel actually hit a kernel panic, but the guest kernel wants to handle by itself. Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Link: https://lore.kernel.org/r/20200102023513.318836-3-pizhenwei@bytedance.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 lines
209 B
C
10 lines
209 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
|
|
#ifndef __PVPANIC_H__
|
|
#define __PVPANIC_H__
|
|
|
|
#define PVPANIC_PANICKED (1 << 0)
|
|
#define PVPANIC_CRASH_LOADED (1 << 1)
|
|
|
|
#endif /* __PVPANIC_H__ */
|