Replace '-machine accel=xyz' with '-accel xyz'
authorThomas Huth <thuth@redhat.com>
Wed, 4 Sep 2019 05:27:39 +0000 (07:27 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 19 Sep 2019 10:01:48 +0000 (12:01 +0200)
We've got a separate option to configure the accelerator nowadays, which
is shorter to type and the preferred way of specifying an accelerator.
Use it in the source and examples to show that it is the favored option.
(However, do not touch the places yet which also specify other machine
options or multiple accelerators - these are currently still better
handled with one single "-machine" statement instead)

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20190904052739.22123-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
python/qemu/qtest.py
qemu-deprecated.texi
qemu-options.hx
tests/libqtest.c
tests/migration/guestperf/engine.py
tests/qemu-iotests/172

index eebcc233ed5c07bb96227016c68018b418ff51eb..3f1d2cb32543eaf091e3a0ad3811d6fbecfdc9e1 100644 (file)
@@ -96,7 +96,7 @@ class QEMUQtestMachine(QEMUMachine):
     def _base_args(self):
         args = super(QEMUQtestMachine, self)._base_args()
         args.extend(['-qtest', 'unix:path=' + self._qtest_path,
-                     '-machine', 'accel=qtest'])
+                     '-accel', 'qtest'])
         return args
 
     def _pre_launch(self):
index 9d74a1cfc0172e35abb4cf440c79d1136c4ca3ee..01245e0b1c4be458ef7634c0534ea74122de8ff3 100644 (file)
@@ -26,8 +26,7 @@ The @option{enforce-config-section} parameter is replaced by the
 
 @subsection -no-kvm (since 1.3.0)
 
-The ``-no-kvm'' argument is now a synonym for setting
-``-machine accel=tcg''.
+The ``-no-kvm'' argument is now a synonym for setting ``-accel tcg''.
 
 @subsection -usbdevice (since 2.10.0)
 
index bbfd936d29ec82fd8fdde18281bd4fdaf9b314db..80c16fa317e5211b26f55bef9a4c913b6a8ad8d6 100644 (file)
@@ -4156,7 +4156,7 @@ STEXI
 Enable FIPS 140-2 compliance mode.
 ETEXI
 
-HXCOMM Deprecated by -machine accel=tcg property
+HXCOMM Deprecated by -accel tcg
 DEF("no-kvm", 0, QEMU_OPTION_no_kvm, "", QEMU_ARCH_I386)
 
 DEF("msg", HAS_ARG, QEMU_OPTION_msg,
index 4a7556462d65dd7c0bb0294fb2c877b3386e47e8..38e4f5b5871e88d8823e04ec31221dc1da820d66 100644 (file)
@@ -241,7 +241,7 @@ QTestState *qtest_init_without_qmp_handshake(const char *extra_args)
                               "-qtest-log %s "
                               "-chardev socket,path=%s,id=char0 "
                               "-mon chardev=char0,mode=control "
-                              "-machine accel=qtest "
+                              "-accel qtest "
                               "-display none "
                               "%s", qemu_binary, socket_path,
                               getenv("QTEST_LOG") ? "/dev/fd/2" : "/dev/null",
index f13dbea8000d55daa1775810536c7103ab8d69cf..1dd04ce33b72edb17723aca7b57041cd87fe1ee5 100644 (file)
@@ -287,7 +287,7 @@ class Engine(object):
             cmdline = "'" + cmdline + "'"
 
         argv = [
-            "-machine", "accel=kvm",
+            "-accel", "kvm",
             "-cpu", "host",
             "-kernel", self._kernel,
             "-initrd", self._initrd,
index ba7dad905751c2ed057cd6b6e643b0a384dc8655..d67997e5f62b25c206451bc44747a9018bb3d51e 100755 (executable)
@@ -55,7 +55,7 @@ do_run_qemu()
             done
         fi
         echo quit
-    ) | $QEMU -machine accel=qtest -nographic -monitor stdio -serial none "$@"
+    ) | $QEMU -accel qtest -nographic -monitor stdio -serial none "$@"
     echo
 }