From: "Daniel P. Berrange" <berrange@redhat.com>
To: Alex Barcelo <abarcelo@ac.upc.edu>
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/3] coroutine: adding enable/disable options for sigaltstack method
Date: Mon, 13 Feb 2012 14:49:28 +0000 [thread overview]
Message-ID: <20120213144928.GL32182@redhat.com> (raw)
In-Reply-To: <1329144150-7720-4-git-send-email-abarcelo@ac.upc.edu>
On Mon, Feb 13, 2012 at 03:42:30PM +0100, Alex Barcelo wrote:
> It's possible to enable/disable sigaltstack, but it always has
> less priority than ucontext method (to force sigaltstack,
> ucontext has to be disabled).
>
> Signed-off-by: Alex Barcelo <abarcelo@ac.upc.edu>
> ---
> Makefile.objs | 4 ++++
> configure | 39 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 43 insertions(+), 0 deletions(-)
>
> diff --git a/Makefile.objs b/Makefile.objs
> index 391e524..8874825 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 ed40da8..e9c27f3 100755
> --- a/configure
> +++ b/configure
> @@ -191,6 +191,7 @@ zlib="yes"
> guest_agent="yes"
> libiscsi=""
> ucontext=""
> +sigaltstack=""
>
> # parse CC options first
> for opt do
> @@ -803,6 +804,10 @@ for opt do
> ;;
> --disable-ucontext) ucontext="no"
> ;;
> + --enable-sigaltstack) sigaltstack="yes"
> + ;;
> + --disable-sigaltstack) sigaltstack="no"
> + ;;
> *) echo "ERROR: unknown option $opt"; show_help="yes"
> ;;
> esac
> @@ -1091,6 +1096,8 @@ echo " --disable-guest-agent disable building of the QEMU Guest Agent"
> echo " --enable-guest-agent enable building of the QEMU Guest Agent"
> echo " --disable-ucontext disable ucontext functions for coroutines"
> echo " --enable-ucontext enable ucontext functions for coroutines"
> +echo " --disable-sigaltstack disable sigaltstack functions for coroutines"
> +echo " --enable-sigaltstack enable sigaltstack functions for coroutines"
Since the 3 different coroutine impls are mutually exclusive
choices, perhaps it'd be preferable to just have a single
configure argument like
--with-couroutines=[ucontext|sigaltstack|gthread]
Thus avoiding the non-sensical scenario of the user specifying
--enable-ucontext --enable-sigaltstack
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2012-02-13 14:49 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 14:42 [Qemu-devel] [PATCH 0/3] New sigaltstack method for coroutine Alex Barcelo
2012-02-13 14:42 ` [Qemu-devel] [PATCH 1/3] coroutine: adding sigaltstack method (.c source) Alex Barcelo
2012-02-13 14:57 ` Paolo Bonzini
2012-02-13 15:57 ` Andreas Färber
2012-02-13 16:11 ` Alex Barcelo
2012-02-13 16:31 ` Andreas Färber
2012-02-13 22:20 ` Andreas Färber
2012-02-14 9:24 ` Stefan Hajnoczi
2012-02-14 9:50 ` Paolo Bonzini
2012-02-14 12:25 ` Stefan Hajnoczi
2012-03-06 21:14 ` Peter Maydell
2012-02-14 11:53 ` Alex Barcelo
2012-02-14 12:20 ` Stefan Hajnoczi
2012-02-14 13:21 ` Alex Barcelo
2012-02-14 15:12 ` Stefan Hajnoczi
2012-02-13 14:42 ` [Qemu-devel] [PATCH 2/3] coroutine: adding control flags (enable/disable) for ucontext compilation Alex Barcelo
2012-02-13 15:36 ` Kevin Wolf
2012-02-13 14:42 ` [Qemu-devel] [PATCH 3/3] coroutine: adding enable/disable options for sigaltstack method Alex Barcelo
2012-02-13 14:49 ` Daniel P. Berrange [this message]
2012-02-13 15:16 ` Alex Barcelo
2012-02-13 14:51 ` [Qemu-devel] [PATCH 0/3] New sigaltstack method for coroutine Peter Maydell
2012-02-13 15:11 ` Alex Barcelo
2012-02-14 8:33 ` Stefan Hajnoczi
2012-02-14 11:38 ` Alex Barcelo
2012-02-14 12:17 ` Stefan Hajnoczi
2012-02-14 13:12 ` Alex Barcelo
2012-02-14 15:11 ` Stefan Hajnoczi
2012-02-14 13:00 ` Paul Brook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120213144928.GL32182@redhat.com \
--to=berrange@redhat.com \
--cc=abarcelo@ac.upc.edu \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).