qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Claudio Imbrenda <imbrenda@linux.ibm.com>, pbonzini@redhat.com
Cc: qemu-devel@nongnu.org, david@redhat.com, borntraeger@de.ibm.com,
	frankja@linux.ibm.com, fiuczy@linux.ibm.com, pasic@linux.ibm.com,
	nsg@linux.ibm.com, berrange@redhat.com, alex.bennee@linaro.org,
	armbru@redhat.com
Subject: Re: [PATCH v6 1/1] util/async-teardown: wire up query-command-line-options
Date: Fri, 28 Apr 2023 14:16:42 +0200	[thread overview]
Message-ID: <e3d52859-7613-0a1d-aa15-36e1f92ff8d6@redhat.com> (raw)
In-Reply-To: <20230428111224.37140-2-imbrenda@linux.ibm.com>

On 28/04/2023 13.12, Claudio Imbrenda wrote:
> Add new -run-with option with an async-teardown=on|off parameter. It is
> visible in the output of query-command-line-options QMP command, so it
> can be discovered and used by libvirt.
> 
> The option -async-teardown is now redundant, deprecate it.
> 
> Reported-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
> Fixes: c891c24b1a ("os-posix: asynchronous teardown for shutdown on Linux")
> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
> ---
>   docs/about/deprecated.rst |  5 +++++
>   os-posix.c                | 15 +++++++++++++++
>   qemu-options.hx           | 34 +++++++++++++++++++++++-----------
>   util/async-teardown.c     | 21 +++++++++++++++++++++
>   4 files changed, 64 insertions(+), 11 deletions(-)
> 
> diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
> index 1ca9dc33d6..0986db9a86 100644
> --- a/docs/about/deprecated.rst
> +++ b/docs/about/deprecated.rst
> @@ -111,6 +111,11 @@ Use ``-machine acpi=off`` instead.
>   The HAXM project has been retired (see https://github.com/intel/haxm#status).
>   Use "whpx" (on Windows) or "hvf" (on macOS) instead.
>   
> +``-async-teardown`` (since 8.1)
> +,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> +
> +Use ``-run-with async-teardown=on`` instead.
> +
>   
>   QEMU Machine Protocol (QMP) commands
>   ------------------------------------
> diff --git a/os-posix.c b/os-posix.c
> index 5adc69f560..117ad2bdc1 100644
> --- a/os-posix.c
> +++ b/os-posix.c
> @@ -36,6 +36,8 @@
>   #include "qemu/log.h"
>   #include "sysemu/runstate.h"
>   #include "qemu/cutils.h"
> +#include "qemu/config-file.h"
> +#include "qemu/option.h"
>   
>   #ifdef CONFIG_LINUX
>   #include <sys/prctl.h>
> @@ -132,6 +134,8 @@ static bool os_parse_runas_uid_gid(const char *optarg)
>    */
>   int os_parse_cmd_args(int index, const char *optarg)
>   {
> +    QemuOpts *opts;

Fails to compile on FreeBSD:

../src/os-posix.c:137:15: error: unused variable 'opts' 
[-Werror,-Wunused-variable]
     QemuOpts *opts;
               ^
1 error generated.

Apart from that, the patch looks fine to me.

  Thomas



  reply	other threads:[~2023-04-28 12:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28 11:12 [PATCH v6 0/1] util/async-teardown: appear in query-command-line-options Claudio Imbrenda
2023-04-28 11:12 ` [PATCH v6 1/1] util/async-teardown: wire up query-command-line-options Claudio Imbrenda
2023-04-28 12:16   ` Thomas Huth [this message]
2023-04-28 12:36     ` Claudio Imbrenda

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=e3d52859-7613-0a1d-aa15-36e1f92ff8d6@redhat.com \
    --to=thuth@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=david@redhat.com \
    --cc=fiuczy@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=nsg@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --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).