Re: [PATCH 2/6] x86/sev: Fix nonistr violation

2021-01-07 Thread Peter Zijlstra
On Wed, Jan 06, 2021 at 09:59:17AM -0800, Randy Dunlap wrote: > On 1/6/21 6:36 AM, Peter Zijlstra wrote: > > When the compiler fails to inline; we violate nonisntr: > > > > vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xc7: call to > > sev_es_wr_ghcb_msr() leaves .noinstr.text section

Re: [PATCH 2/6] x86/sev: Fix nonistr violation

2021-01-06 Thread Randy Dunlap
On 1/6/21 6:36 AM, Peter Zijlstra wrote: > When the compiler fails to inline; we violate nonisntr: > > vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xc7: call to > sev_es_wr_ghcb_msr() leaves .noinstr.text section I am still seeing (a variant of) this one: vmlinux.o: warning:

[PATCH 2/6] x86/sev: Fix nonistr violation

2021-01-06 Thread Peter Zijlstra
When the compiler fails to inline; we violate 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 Signed-off-by: Peter Zijlstra (Intel)