From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S76zd-0001My-Kh for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S76zL-0005RM-Dk for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:17:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S76zL-0005RC-6D for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:16:43 -0400 From: Kevin Wolf Date: Mon, 12 Mar 2012 16:19:50 +0100 Message-Id: <1331565591-8414-20-git-send-email-kwolf@redhat.com> In-Reply-To: <1331565591-8414-1-git-send-email-kwolf@redhat.com> References: <1331565591-8414-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 19/20] coroutine: adding configure option for sigaltstack coroutine backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Alex Barcelo It's possible to use sigaltstack backend with --with-coroutine=sigaltstack v2: changed from enable/disable configure flags Signed-off-by: Alex Barcelo Signed-off-by: Kevin Wolf --- Makefile.objs | 4 ++++ configure | 6 +++++- 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index b39d76c..5f0b3f7 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -17,8 +17,12 @@ coroutine-obj-y += qemu-coroutine-sleep.o ifeq ($(CONFIG_UCONTEXT_COROUTINE),y) coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o else +ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y) +coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o +else coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o endif +endif coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o ####################################################################### diff --git a/configure b/configure index bb80822..ddb3e39 100755 --- a/configure +++ b/configure @@ -1114,7 +1114,7 @@ echo " --enable-usb-redir enable usb network redirection support" echo " --disable-guest-agent disable building of the QEMU Guest Agent" echo " --enable-guest-agent enable building of the QEMU Guest Agent" echo " --with-coroutine=BACKEND coroutine backend. Supported options:" -echo " gthread, ucontext, windows" +echo " gthread, ucontext, sigaltstack, windows" echo "" echo "NOTE: The object files are built at the place where configure is launched" exit 1 @@ -2745,6 +2745,8 @@ elif test "$coroutine" = "gthread" ; then coroutine_backend=gthread elif test "$coroutine" = "windows" ; then coroutine_backend=windows +elif test "$coroutine" = "sigaltstack" ; then + coroutine_backend=sigaltstack else echo echo "Error: unknown coroutine backend $coroutine" @@ -3269,6 +3271,8 @@ fi if test "$coroutine_backend" = "ucontext" ; then echo "CONFIG_UCONTEXT_COROUTINE=y" >> $config_host_mak +elif test "$coroutine_backend" = "sigaltstack" ; then + echo "CONFIG_SIGALTSTACK_COROUTINE=y" >> $config_host_mak fi if test "$open_by_handle_at" = "yes" ; then -- 1.7.6.5