Re: [PATCH] KVM: PPC: Book3S HV: Workaround high stack usage with clang

2021-06-24 Thread Michael Ellerman
On Mon, 21 Jun 2021 11:24:40 -0700, Nathan Chancellor wrote: > LLVM does not emit optimal byteswap assembly, which results in high > stack usage in kvmhv_enter_nested_guest() due to the inlining of > byteswap_pt_regs(). With LLVM 12.0.0: > > arch/powerpc/kvm/book3s_hv_nested.c:289:6: error: stack

Re: [PATCH] KVM: PPC: Book3S HV: Workaround high stack usage with clang

2021-06-22 Thread Nicholas Piggin
Excerpts from Nathan Chancellor's message of June 22, 2021 4:24 am: > LLVM does not emit optimal byteswap assembly, which results in high > stack usage in kvmhv_enter_nested_guest() due to the inlining of > byteswap_pt_regs(). With LLVM 12.0.0: > > arch/powerpc/kvm/book3s_hv_nested.c:289:6: error:

[PATCH] KVM: PPC: Book3S HV: Workaround high stack usage with clang

2021-06-21 Thread Nathan Chancellor
LLVM does not emit optimal byteswap assembly, which results in high stack usage in kvmhv_enter_nested_guest() due to the inlining of byteswap_pt_regs(). With LLVM 12.0.0: arch/powerpc/kvm/book3s_hv_nested.c:289:6: error: stack frame size of 2512 bytes in function 'kvmhv_enter_nested_guest' [-Werro