Re: [libvirt PATCH 08/11] libxl: allocate d_config

2020-08-28 Thread Peter Krempa
On Thu, Aug 27, 2020 at 22:19:50 +0200, Ján Tomko wrote: > clang reports: > > stack frame size of 2152 bytes in function 'libxlDomainStart' > > This is mostly due to the d_config variable: > > sizeof(libxl_domain_config) = 1232 > > Use g_new0 to allocate it and bring the frame size down.

[libvirt PATCH 08/11] libxl: allocate d_config

2020-08-27 Thread Ján Tomko
clang reports: stack frame size of 2152 bytes in function 'libxlDomainStart' This is mostly due to the d_config variable: sizeof(libxl_domain_config) = 1232 Use g_new0 to allocate it and bring the frame size down. Signed-off-by: Ján Tomko --- src/libxl/libxl_domain.c | 24