[Top][All Lists]

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

[Qemu-block] Limiting coroutine stack usage

From: Peter Lieven
Subject: [Qemu-block] 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


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 


reply via email to

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