From 9ffcbe2a60d24fc20b98f010dbca244df1fe82c5 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Mon, 3 Jul 2023 09:44:47 +0200 Subject: os-posix: Allow 'chroot' via '-run-with' and deprecate the old '-chroot' option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We recently introduced "-run-with" for options that influence the runtime behavior of QEMU. This option has the big advantage that it can group related options (so that it is easier for the users to spot them) and that the options become introspectable via QMP this way. So let's start moving more switches into this option group, starting with "-chroot" now. Reviewed-by: Claudio Imbrenda Reviewed-by: Michael Tokarev Reviewed-by: Ján Tomko Message-Id: <20230703074447.17044-1-thuth@redhat.com> Signed-off-by: Thomas Huth --- util/async-teardown.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'util') diff --git a/util/async-teardown.c b/util/async-teardown.c index 3ab19c8..62cdeb0 100644 --- a/util/async-teardown.c +++ b/util/async-teardown.c @@ -12,9 +12,6 @@ */ #include "qemu/osdep.h" -#include "qemu/config-file.h" -#include "qemu/option.h" -#include "qemu/module.h" #include #include #include @@ -147,21 +144,3 @@ void init_async_teardown(void) clone(async_teardown_fn, new_stack_for_clone(), CLONE_VM, NULL); sigprocmask(SIG_SETMASK, &old_signals, NULL); } - -static QemuOptsList qemu_run_with_opts = { - .name = "run-with", - .head = QTAILQ_HEAD_INITIALIZER(qemu_run_with_opts.head), - .desc = { - { - .name = "async-teardown", - .type = QEMU_OPT_BOOL, - }, - { /* end of list */ } - }, -}; - -static void register_teardown(void) -{ - qemu_add_opts(&qemu_run_with_opts); -} -opts_init(register_teardown); -- cgit v1.1