Message ID | 1468340586-19304-3-git-send-email-pl@kamp.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Jul 12, 2016 at 06:23:02PM +0200, Peter Lieven wrote: > Reviewed-by: Richard Henderson <rth@twiddle.net> > Signed-off-by: Peter Lieven <pl@kamp.de> > --- > include/qemu/coroutine_int.h | 2 ++ > util/coroutine-sigaltstack.c | 2 +- > util/coroutine-ucontext.c | 2 +- > util/coroutine-win32.c | 2 +- > 4 files changed, 5 insertions(+), 3 deletions(-) Thanks, applied to my master tree: https://github.com/stefanha/qemu/commits/master Stefan
On Tue, Jul 12, 2016 at 06:23:02PM +0200, Peter Lieven wrote: > Reviewed-by: Richard Henderson <rth@twiddle.net> > Signed-off-by: Peter Lieven <pl@kamp.de> > --- > include/qemu/coroutine_int.h | 2 ++ > util/coroutine-sigaltstack.c | 2 +- > util/coroutine-ucontext.c | 2 +- > util/coroutine-win32.c | 2 +- > 4 files changed, 5 insertions(+), 3 deletions(-) Sorry, please ignore the spurious "Applied" email I just sent. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff --git a/include/qemu/coroutine_int.h b/include/qemu/coroutine_int.h index 42d6838..eac323a 100644 --- a/include/qemu/coroutine_int.h +++ b/include/qemu/coroutine_int.h @@ -28,6 +28,8 @@ #include "qemu/queue.h" #include "qemu/coroutine.h" +#define COROUTINE_STACK_SIZE (1 << 20) + typedef enum { COROUTINE_YIELD = 1, COROUTINE_TERMINATE = 2, diff --git a/util/coroutine-sigaltstack.c b/util/coroutine-sigaltstack.c index a7c3366..9c2854c 100644 --- a/util/coroutine-sigaltstack.c +++ b/util/coroutine-sigaltstack.c @@ -143,7 +143,7 @@ static void coroutine_trampoline(int signal) Coroutine *qemu_coroutine_new(void) { - const size_t stack_size = 1 << 20; + const size_t stack_size = COROUTINE_STACK_SIZE; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction sa; diff --git a/util/coroutine-ucontext.c b/util/coroutine-ucontext.c index 2bb7e10..31254ab 100644 --- a/util/coroutine-ucontext.c +++ b/util/coroutine-ucontext.c @@ -82,7 +82,7 @@ static void coroutine_trampoline(int i0, int i1) Coroutine *qemu_coroutine_new(void) { - const size_t stack_size = 1 << 20; + const size_t stack_size = COROUTINE_STACK_SIZE; CoroutineUContext *co; ucontext_t old_uc, uc; sigjmp_buf old_env; diff --git a/util/coroutine-win32.c b/util/coroutine-win32.c index 02e28e8..de6bd4f 100644 --- a/util/coroutine-win32.c +++ b/util/coroutine-win32.c @@ -71,7 +71,7 @@ static void CALLBACK coroutine_trampoline(void *co_) Coroutine *qemu_coroutine_new(void) { - const size_t stack_size = 1 << 20; + const size_t stack_size = COROUTINE_STACK_SIZE; CoroutineWin32 *co; co = g_malloc0(sizeof(*co));