diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-12-05 12:28:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-12-05 13:18:54 +0100 |
commit | 09d35045cd0f4265cf1dfe18ef83285fdc294688 (patch) | |
tree | 18da65f12047f8516a736cff519ec9af28ae1ed3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | feffde684ac29a3b7aec82d2df850fbdbdee55e4 (diff) |
x86/sev: Avoid WARN()s and panic()s in early boot code
Using WARN() or panic() while executing from the early 1:1 mapping is
unlikely to do anything useful: the string literals are passed using
their kernel virtual addresses which are not even mapped yet. But even
if they were, calling into the printk() machinery from the early 1:1
mapped code is not going to get very far.
So drop the WARN()s entirely, and replace panic() with a deadloop.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20241205112804.3416920-10-ardb+git@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions