[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: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/2] vl: fix use of --daemonize with --preconfig |
Date: |
Mon, 4 Jun 2018 22:06:35 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
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"?
--
Eduardo
- 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