]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/sev: Fix nonistr violation
authorPeter Zijlstra <peterz@infradead.org>
Wed, 6 Jan 2021 14:36:21 +0000 (15:36 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Jan 2021 20:10:58 +0000 (21:10 +0100)
commita1d5c98aac33a5a0004ecf88905dcc261c52f988
treeddcffdf3688a17b1f3697189490b540c8bfc7102
parent9caa7ff509add50959a793b811cc7c9339e281cd
x86/sev: Fix nonistr violation

When the compiler fails to inline, it violates nonisntr:

  vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xc7: call to sev_es_wr_ghcb_msr() leaves .noinstr.text section

Fixes: 4ca68e023b11 ("x86/sev-es: Handle NMI State")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210106144017.532902065@infradead.org
arch/x86/kernel/sev-es.c