[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] QEMU question: is eventfd not thread safe?
From: |
Benjamin Herrenschmidt |
Subject: |
Re: [Qemu-devel] QEMU question: is eventfd not thread safe? |
Date: |
Mon, 02 Jul 2012 10:44:31 +1000 |
On Mon, 2012-07-02 at 10:06 +1000, Alexey Kardashevskiy wrote:
> > Won't that conflict with the business in coroutine-sigaltstack.c ?
>
> The code which touches SIGUSR2 does not compile on power.
Oh, we don't get the altstack coroutine stuff ? interesting...
> > Hrm... looking at it, it looks like it will save/restore the handler,
> > so that should be good.
> >
> > Still, one might want to wrap that into something, like
> > qemu_wake_main_loop();
>
>
> I already posted another patch with qemu_notify_event() in this mail thread
> later :)
Ok. Thanks.
Cheers,
Ben.
>
> >
> > Cheers,
> > Ben.
> >
> >>>> int main_loop_init(void)
> >>>> {
> >>>> int ret;
> >>>>
> >>>> + sigusr2_init();
> >>>> +
> >>>> qemu_mutex_lock_iothread();
> >>>> ret = qemu_signal_init();
> >>>> if (ret) {
> >>>> --
> >>>> 1.7.10
> >>
> >>
> >
> >
>
>
Re: [Qemu-devel] QEMU question: is eventfd not thread safe?, Benjamin Herrenschmidt, 2012/07/01
Re: [Qemu-devel] QEMU question: is eventfd not thread safe?, Paolo Bonzini, 2012/07/01
- Re: [Qemu-devel] QEMU question: is eventfd not thread safe?, Alexey Kardashevskiy, 2012/07/01
- Re: [Qemu-devel] QEMU question: is eventfd not thread safe?, Alexey Kardashevskiy, 2012/07/01
- Re: [Qemu-devel] QEMU question: is eventfd not thread safe?, Paolo Bonzini, 2012/07/01
- [Qemu-devel] [PATCH] eventfd: making it rhread safe, Alexey Kardashevskiy, 2012/07/01
- Re: [Qemu-devel] [PATCH] eventfd: making it rhread safe, Alexey Kardashevskiy, 2012/07/08
- Re: [Qemu-devel] [PATCH] eventfd: making it rhread safe, Alexey Kardashevskiy, 2012/07/18
- Re: [Qemu-devel] [PATCH] eventfd: making it rhread safe, Michael S. Tsirkin, 2012/07/18