qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] headers: Add pvpanic.h
@ 2022-02-21 12:27 zhenwei pi
  2022-02-21 12:27 ` [PATCH 2/2] hw/misc/pvpanic: Use standard headers instead zhenwei pi
  2022-02-21 15:10 ` [PATCH 1/2] headers: Add pvpanic.h Philippe Mathieu-Daudé
  0 siblings, 2 replies; 6+ messages in thread
From: zhenwei pi @ 2022-02-21 12:27 UTC (permalink / raw)
  To: pbonzini, mst; +Cc: qemu-devel, zhenwei pi

Since 2020, linux kernel started to export pvpanic.h. Import the
latest version from linux into QEMU.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
---
 include/standard-headers/linux/pvpanic.h | 9 +++++++++
 scripts/update-linux-headers.sh          | 3 ++-
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 include/standard-headers/linux/pvpanic.h

diff --git a/include/standard-headers/linux/pvpanic.h b/include/standard-headers/linux/pvpanic.h
new file mode 100644
index 0000000000..54b7485390
--- /dev/null
+++ b/include/standard-headers/linux/pvpanic.h
@@ -0,0 +1,9 @@
+/* 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__ */
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index fe850763c5..839a5ec614 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -214,7 +214,8 @@ for i in "$tmpdir"/include/linux/*virtio*.h \
          "$tmpdir/include/linux/const.h" \
          "$tmpdir/include/linux/kernel.h" \
          "$tmpdir/include/linux/vhost_types.h" \
-         "$tmpdir/include/linux/sysinfo.h"; do
+         "$tmpdir/include/linux/sysinfo.h" \
+         "$tmpdir/include/misc/pvpanic.h"; do
     cp_portable "$i" "$output/include/standard-headers/linux"
 done
 mkdir -p "$output/include/standard-headers/drm"
-- 
2.25.1



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

end of thread, other threads:[~2022-02-21 15:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21 12:27 [PATCH 1/2] headers: Add pvpanic.h zhenwei pi
2022-02-21 12:27 ` [PATCH 2/2] hw/misc/pvpanic: Use standard headers instead zhenwei pi
2022-02-21 13:32   ` Philippe Mathieu-Daudé
2022-02-21 14:11     ` Peter Maydell
2022-02-21 14:29       ` Philippe Mathieu-Daudé
2022-02-21 15:10 ` [PATCH 1/2] headers: Add pvpanic.h Philippe Mathieu-Daudé

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