Skip to content

Commit a1d5c98

Browse files
Peter ZijlstraKAGA-KOKO
authored andcommitted
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: 4ca68e0 ("x86/sev-es: Handle NMI State") Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9caa7ff commit a1d5c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/sev-es.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static inline u64 sev_es_rd_ghcb_msr(void)
225225
return __rdmsr(MSR_AMD64_SEV_ES_GHCB);
226226
}
227227

228-
static inline void sev_es_wr_ghcb_msr(u64 val)
228+
static __always_inline void sev_es_wr_ghcb_msr(u64 val)
229229
{
230230
u32 low, high;
231231

0 commit comments

Comments
 (0)