From: Peter Maydell <peter.maydell@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL 06/17] cpus: remove ugly cast on sigbus_handler
Date: Fri, 17 Mar 2017 15:08:48 +0000 [thread overview]
Message-ID: <CAFEAcA9Ec3e1CHDHRFKtfN7w3Fh4=GVuo8C-9mpwYnpYwFNNYA@mail.gmail.com> (raw)
In-Reply-To: <20170227164950.15062-2-pbonzini@redhat.com>
On 27 February 2017 at 16:49, Paolo Bonzini <pbonzini@redhat.com> wrote:
> The cast is there because sigbus_handler is invoked via sigfd_handler.
> But it feels just wrong to use struct qemu_signalfd_siginfo in the
> prototype of a function that is passed to sigaction.
>
> Instead, do a simple-minded conversion of qemu_signalfd_siginfo to
> siginfo_t.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> + } else if (info->ssi_signo == SIGIO) {
> + si.si_band = info->ssi_band;
> + }
This doesn't build on OpenBSD:
In file included from /usr/include/sys/signal.h:107:0,
from /usr/include/signal.h:38,
from /root/qemu/include/qemu/osdep.h:86,
from /root/qemu/util/oslib-posix.c:29:
/root/qemu/util/oslib-posix.c: In function 'sigaction_invoke':
/root/qemu/util/oslib-posix.c:713:12: error: 'union <anonymous>' has
no member named '_file'
si.si_band = info->ssi_band;
^
I dunno how much we care.
thanks
-- PMM
next prev parent reply other threads:[~2017-03-17 15:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 16:49 [Qemu-devel] [PULL v3 00/17] KVM and cpu-exec patches for 2.9 soft freeze Paolo Bonzini
2017-02-27 16:49 ` [Qemu-devel] [PULL 06/17] cpus: remove ugly cast on sigbus_handler Paolo Bonzini
2017-03-17 15:08 ` Peter Maydell [this message]
2017-03-17 15:20 ` Paolo Bonzini
2017-02-27 16:49 ` [Qemu-devel] [PULL 10/17] KVM: do not use sigtimedwait to catch SIGBUS Paolo Bonzini
2017-02-27 19:19 ` [Qemu-devel] [PULL v3 00/17] KVM and cpu-exec patches for 2.9 soft freeze Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2017-02-24 17:40 [Qemu-devel] [PULL " Paolo Bonzini
2017-02-24 17:40 ` [Qemu-devel] [PULL 06/17] cpus: remove ugly cast on sigbus_handler Paolo Bonzini
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='CAFEAcA9Ec3e1CHDHRFKtfN7w3Fh4=GVuo8C-9mpwYnpYwFNNYA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=pbonzini@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).