From: Richard Henderson <rth@twiddle.net>
To: Stefan Weil <sw@weilnetz.de>, Kevin Wolf <kwolf@redhat.com>
Cc: Liviu Ionescu <ilg@livius.net>,
QEMU Developer <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] QEMU 2.4 for Windows - current status
Date: Thu, 6 Aug 2015 10:12:53 -0700 [thread overview]
Message-ID: <55C39595.4010406@twiddle.net> (raw)
In-Reply-To: <55C33305.4040502@weilnetz.de>
On 08/06/2015 03:12 AM, Stefan Weil wrote:
> (sig)setjmp/(sig)longjmp without TCG generated code on the stack
> does not need special handling because stack unwinding works
> for compiled normal C code.
>
> We only have a problem on 64 bit Windows with code generated
> at run time by TCG because stack unwinding does not work there,
> so a siglongjmp which tries to exit from that code will crash QEMU
> when trying to unwind the call stack.
I suppose we could fix that, for 2.5, anyway.
It would appear that RtlAddFunctionTable is
the proper interface.
It would probably also help debugging just as
much as adding the elf unwind info did.
> As far as I see, the only siglongjmp exits from TCG generated code
> are in cpu-exec.c (functions cpu_loop_exit and
> cpu_resume_from_signal). The matching sigsetjmp is also in
> cpu-exec.c, and here we have to disable stack unwinding
> by calling _setjmp(cpu->jmp_env, NULL).
That sounds right.
r~
next prev parent reply other threads:[~2015-08-06 17:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 10:17 [Qemu-devel] [PATCH for-2.4] oslib-win32: only provide localtime_r/gmtime_r if missing Daniel P. Berrange
2015-07-31 12:49 ` Paolo Bonzini
2015-07-31 13:33 ` Daniel P. Berrange
2015-07-31 17:58 ` Stefan Weil
2015-08-05 9:52 ` Daniel P. Berrange
2015-08-05 11:03 ` [Qemu-devel] QEMU 2.4 for Windows - current status Stefan Weil
2015-08-05 12:49 ` Paolo Bonzini
2015-08-05 15:38 ` Stefan Weil
2015-09-10 20:38 ` Stefan Weil
2015-08-05 16:51 ` Liviu Ionescu
2015-08-05 16:56 ` Paolo Bonzini
2015-08-05 18:39 ` Liviu Ionescu
2015-08-05 20:30 ` Stefan Weil
2015-08-05 21:42 ` Liviu Ionescu
2015-08-06 8:44 ` Kevin Wolf
2015-08-06 10:12 ` Stefan Weil
2015-08-06 17:12 ` Richard Henderson [this message]
2015-08-10 10:25 ` Peter Maydell
2015-08-10 11:39 ` Stefan Weil
2015-08-10 14:00 ` Paolo Bonzini
2015-08-10 20:22 ` Stefan Weil
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=55C39595.4010406@twiddle.net \
--to=rth@twiddle.net \
--cc=ilg@livius.net \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/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).