qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building QEMU as a shared library


From: Peter Maydell
Subject: Re: Building QEMU as a shared library
Date: Wed, 15 Dec 2021 13:39:15 +0000

On Wed, 15 Dec 2021 at 13:23, Stefan Hajnoczi <stefanha@redhat.com> wrote:
>
> On Wed, Dec 15, 2021 at 12:18:16PM +0000, Amir Gonnen wrote:
> > Easier/faster synchronization is just one side of the issue.
> > It's much easier to debug a single process or profile it, for example. It's 
> > also easier to deploy and maintain a single process.
> >
> > For now, the only "global state" problem I had to fix was Glib global 
> > context.
> > I didn't see an issue with posix signals. Any other global state you think 
> > I should take care of?
>
> Signal handlers are interesting because they are per-process, not
> per-thread. Luckily QEMU doesn't use signals that much. Accelerators
> like KVM use SIGUSR1 while TCG doesn't rely on signals.

I think TCG also uses SIGUSR1 for SIG_IPI.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]