[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/2] vl: fix use of --daemonize with --precon
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/2] vl: fix use of --daemonize with --preconfig |
Date: |
Tue, 5 Jun 2018 09:10:16 +0200 |
On Mon, 4 Jun 2018 22:06:35 -0300
Eduardo Habkost <address@hidden> wrote:
> On Mon, Jun 04, 2018 at 05:01:11PM +0200, Igor Mammedov wrote:
> [...]
> > I'd prefer your patch, as it doesn't break error handling,
> > or maybe even shorter version which keeps state transitions in one place:
> >
> > diff --git a/vl.c b/vl.c
> > index c4fe255..fa44138 100644
> > --- a/vl.c
> > +++ b/vl.c
> > @@ -1956,7 +1956,7 @@ static void main_loop(void)
> > #ifdef CONFIG_PROFILER
> > int64_t ti;
> > #endif
> > - do {
> > + while (!main_loop_should_exit()) {
> > #ifdef CONFIG_PROFILER
> > ti = profile_getclock();
> > #endif
> > @@ -1964,7 +1964,7 @@ static void main_loop(void)
> > #ifdef CONFIG_PROFILER
> > dev_time += profile_getclock() - ti;
> > #endif
> > - } while (!main_loop_should_exit());
> > + }
> > }
>
> Would this also fix the bug mentioned at:
> "vl.c: make default main_loop_wait() timeout independed of slirp"?
>
it would mask it,
I'd apply slirp fix as well while we have a reason to clean it up
- Re: [Qemu-devel] [PATCH v2 1/2] vl: don't use RUN_STATE_PRECONFIG as initial state, (continued)
Re: [Qemu-devel] [PATCH v2 1/2] vl: don't use RUN_STATE_PRECONFIG as initial state, Daniel P . Berrangé, 2018/06/05
[Qemu-devel] [PATCH v2 2/2] vl: fix use of --daemonize with --preconfig, Daniel P . Berrangé, 2018/06/04
Re: [Qemu-devel] [PATCH v2 2/2] vl: fix use of --daemonize with --preconfig, Igor Mammedov, 2018/06/04
Re: [Qemu-devel] [PATCH v2 0/2] Avoid using RUN_STATE_PRECONFIG unless explicitly requested with --preconfig, Michal Prívozník, 2018/06/11