Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions kernel/printk/printk_safe.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,18 @@ void hv_sev_debugbreak(u32 val)

__printf(1, 0) int vprintk_func(const char *fmt, va_list args)
{
va_list ap;
#ifdef CONFIG_KGDB_KDB
/* Allow to pass printk() to kdb but avoid a recursion. */
if (unlikely(kdb_trap_printk && kdb_printf_cpu < 0))
return vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args);
#endif

if (sev_snp_active())
return hv_sev_printf(fmt, args);
if (sev_snp_active()){
va_copy(ap, args);
hv_sev_printf(fmt, ap);
va_end(ap);
}

/*
* Try to use the main logbuf even in NMI. But avoid calling console
Expand Down