qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Limiting coroutine stack usage


From: Peter Lieven
Subject: [Qemu-devel] Limiting coroutine stack usage
Date: Tue, 20 Feb 2018 18:04:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

Hi,

I remember we discussed a long time ago to limit the stack usage of all 
functions that are executed in a coroutine
context to a very low value to be able to safely limit the coroutine stack size 
as well.

I checked through all functions in block/, migration/ and nbd/ and there are 
only very few larger or unbound stack
allocations that can easily be fixed.

Now my question: Is there an easy way to add a cflag like -Wstack-usage=2048 to 
all objects in a given directory only?
I tried to add a llimit to the whole project, but fixing this will be a larger 
task.

Thanks,
Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]