* [PATCH 0/7] cli: Remove mentions of legacy '-machine foo, accel=bar' command line
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Thomas told '-machine foo,accel=bar' is sugar and almost
deprecated. Rather than having bad examples in the tree,
remove the legacy form and update to the new '-accel bar'
one.
Xen uses via MachineClass::default_machine_opts left for later:
hw/i386/pc_piix.c:818: m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
hw/i386/pc_piix.c:830: m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
hw/xen/xen-pvh-common.c:381: mc->default_machine_opts = "accel=xen";
hw/xenpv/xen_machine_pv.c:69: mc->default_machine_opts = "accel=xen";
Philippe Mathieu-Daudé (7):
tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar'
tests/functional/test_virtio_gpu: Remove legacy '-machine
foo,accel=bar'
tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar'
scripts/device-crash-test: Remove legacy '-machine foo,accel=bar'
accel/tcg: Remove mentions of legacy '-machine foo,accel=bar'
accel/kvm: Remove mentions of legacy '-machine foo,accel=bar'
qemu-options: Remove mentions of legacy '-machine foo,accel=bar'
docs/about/removed-features.rst | 2 +-
docs/bypass-iommu.txt | 3 ++-
docs/nvdimm.txt | 2 +-
docs/specs/tpm.rst | 2 +-
docs/system/arm/cpu-features.rst | 2 +-
docs/system/cpu-hotplug.rst | 2 +-
docs/system/ppc/powernv.rst | 2 +-
docs/system/ppc/pseries.rst | 4 ++--
linux-user/s390x/target_proc.h | 2 +-
accel/tcg/monitor.c | 4 ++--
system/vl.c | 2 +-
tests/qtest/fuzz/generic_fuzz.c | 2 +-
tests/qtest/fuzz/i440fx_fuzz.c | 2 +-
tests/qtest/fuzz/qos_fuzz.c | 2 +-
tests/qtest/qmp-cmd-test.c | 2 +-
qemu-options.hx | 9 ---------
scripts/device-crash-test | 11 ++++++++---
scripts/oss-fuzz/output_reproducer.py | 2 --
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 6 +++---
tests/functional/test_ppc64_hv.py | 3 ++-
tests/functional/test_virtio_gpu.py | 6 ++++--
21 files changed, 35 insertions(+), 37 deletions(-)
--
2.45.2
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' command line
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Thomas told '-machine foo,accel=bar' is sugar and almost
deprecated. Rather than having bad examples in the tree,
remove the legacy form and update to the new '-accel bar'
one.
Xen uses via MachineClass::default_machine_opts left for later:
hw/i386/pc_piix.c:818: m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
hw/i386/pc_piix.c:830: m->default_machine_opts = "accel=xen,suppress-vmdesc=on";
hw/xen/xen-pvh-common.c:381: mc->default_machine_opts = "accel=xen";
hw/xenpv/xen_machine_pv.c:69: mc->default_machine_opts = "accel=xen";
Philippe Mathieu-Daudé (7):
tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar'
tests/functional/test_virtio_gpu: Remove legacy '-machine
foo,accel=bar'
tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar'
scripts/device-crash-test: Remove legacy '-machine foo,accel=bar'
accel/tcg: Remove mentions of legacy '-machine foo,accel=bar'
accel/kvm: Remove mentions of legacy '-machine foo,accel=bar'
qemu-options: Remove mentions of legacy '-machine foo,accel=bar'
docs/about/removed-features.rst | 2 +-
docs/bypass-iommu.txt | 3 ++-
docs/nvdimm.txt | 2 +-
docs/specs/tpm.rst | 2 +-
docs/system/arm/cpu-features.rst | 2 +-
docs/system/cpu-hotplug.rst | 2 +-
docs/system/ppc/powernv.rst | 2 +-
docs/system/ppc/pseries.rst | 4 ++--
linux-user/s390x/target_proc.h | 2 +-
accel/tcg/monitor.c | 4 ++--
system/vl.c | 2 +-
tests/qtest/fuzz/generic_fuzz.c | 2 +-
tests/qtest/fuzz/i440fx_fuzz.c | 2 +-
tests/qtest/fuzz/qos_fuzz.c | 2 +-
tests/qtest/qmp-cmd-test.c | 2 +-
qemu-options.hx | 9 ---------
scripts/device-crash-test | 11 ++++++++---
scripts/oss-fuzz/output_reproducer.py | 2 --
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 6 +++---
tests/functional/test_ppc64_hv.py | 3 ++-
tests/functional/test_virtio_gpu.py | 6 ++++--
21 files changed, 35 insertions(+), 37 deletions(-)
--
2.45.2
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo, accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
functional tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/functional/test_ppc64_hv.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
index 312248bbfe4..536a433b993 100755
--- a/tests/functional/test_ppc64_hv.py
+++ b/tests/functional/test_ppc64_hv.py
@@ -138,7 +138,8 @@ def do_test_kvm(self, hpt=False):
else:
append = ''
exec_command(self, 'qemu-system-ppc64 -nographic -smp 2 -m 1g '
- '-machine pseries,x-vof=on,accel=kvm '
+ '-accel kvm '
+ '-machine pseries,x-vof=on '
'-machine cap-cfpc=broken,cap-sbbc=broken,'
'cap-ibs=broken,cap-ccf-assist=off '
'-drive file=/dev/nvme0n1,format=raw,readonly=on '
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
functional tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/functional/test_ppc64_hv.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
index 312248bbfe4..536a433b993 100755
--- a/tests/functional/test_ppc64_hv.py
+++ b/tests/functional/test_ppc64_hv.py
@@ -138,7 +138,8 @@ def do_test_kvm(self, hpt=False):
else:
append = ''
exec_command(self, 'qemu-system-ppc64 -nographic -smp 2 -m 1g '
- '-machine pseries,x-vof=on,accel=kvm '
+ '-accel kvm '
+ '-machine pseries,x-vof=on '
'-machine cap-cfpc=broken,cap-sbbc=broken,'
'cap-ibs=broken,cap-ccf-assist=off '
'-drive file=/dev/nvme0n1,format=raw,readonly=on '
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo, accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
functional tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/functional/test_virtio_gpu.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/functional/test_virtio_gpu.py b/tests/functional/test_virtio_gpu.py
index d5027487ac4..cc0ec234861 100755
--- a/tests/functional/test_virtio_gpu.py
+++ b/tests/functional/test_virtio_gpu.py
@@ -61,7 +61,8 @@ def test_virtio_vga_virgl(self):
self.vm.set_console()
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
- self.vm.add_args("-machine", "pc,accel=kvm")
+ self.vm.add_args('-accel', 'kvm')
+ self.vm.add_args("-machine", "pc")
self.vm.add_args("-device", "virtio-vga-gl")
self.vm.add_args("-display", "egl-headless")
self.vm.add_args(
@@ -118,10 +119,11 @@ def test_vhost_user_vga_virgl(self):
)
self.vm.set_console()
+ self.vm.add_args('-accel', 'kvm')
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
self.vm.add_args("-object", "memory-backend-memfd,id=mem,size=2G")
- self.vm.add_args("-machine", "pc,memory-backend=mem,accel=kvm")
+ self.vm.add_args("-machine", "pc,memory-backend=mem")
self.vm.add_args("-chardev", "socket,id=vug,fd=%d" % qemu_sock.fileno())
self.vm.add_args("-device", "vhost-user-vga,chardev=vug")
self.vm.add_args("-display", "egl-headless")
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
functional tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/functional/test_virtio_gpu.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/functional/test_virtio_gpu.py b/tests/functional/test_virtio_gpu.py
index d5027487ac4..cc0ec234861 100755
--- a/tests/functional/test_virtio_gpu.py
+++ b/tests/functional/test_virtio_gpu.py
@@ -61,7 +61,8 @@ def test_virtio_vga_virgl(self):
self.vm.set_console()
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
- self.vm.add_args("-machine", "pc,accel=kvm")
+ self.vm.add_args('-accel', 'kvm')
+ self.vm.add_args("-machine", "pc")
self.vm.add_args("-device", "virtio-vga-gl")
self.vm.add_args("-display", "egl-headless")
self.vm.add_args(
@@ -118,10 +119,11 @@ def test_vhost_user_vga_virgl(self):
)
self.vm.set_console()
+ self.vm.add_args('-accel', 'kvm')
self.vm.add_args("-cpu", "host")
self.vm.add_args("-m", "2G")
self.vm.add_args("-object", "memory-backend-memfd,id=mem,size=2G")
- self.vm.add_args("-machine", "pc,memory-backend=mem,accel=kvm")
+ self.vm.add_args("-machine", "pc,memory-backend=mem")
self.vm.add_args("-chardev", "socket,id=vug,fd=%d" % qemu_sock.fileno())
self.vm.add_args("-device", "vhost-user-vga,chardev=vug")
self.vm.add_args("-display", "egl-headless")
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 3/7] tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
` (2 preceding siblings ...)
(?)
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
2024-12-03 9:35 ` Daniel P. Berrangé
2024-12-03 10:25 ` Thomas Huth
-1 siblings, 2 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
fuzzer scripts and tests.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/qtest/fuzz/generic_fuzz.c | 2 +-
tests/qtest/fuzz/i440fx_fuzz.c | 2 +-
tests/qtest/fuzz/qos_fuzz.c | 2 +-
scripts/oss-fuzz/output_reproducer.py | 2 --
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 6 +++---
5 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c
index d107a496da6..a8737a4c463 100644
--- a/tests/qtest/fuzz/generic_fuzz.c
+++ b/tests/qtest/fuzz/generic_fuzz.c
@@ -919,7 +919,7 @@ static GString *generic_fuzz_cmdline(FuzzTarget *t)
usage();
}
g_string_append_printf(cmd_line, " -display none \
- -machine accel=qtest, \
+ -accel qtest \
-m 512M %s ", getenv("QEMU_FUZZ_ARGS"));
return cmd_line;
}
diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c
index 155fe018f80..b5487996625 100644
--- a/tests/qtest/fuzz/i440fx_fuzz.c
+++ b/tests/qtest/fuzz/i440fx_fuzz.c
@@ -145,7 +145,7 @@ static void i440fx_fuzz_qos(QTestState *s,
pciconfig_fuzz_qos(s, bus, Data, Size);
}
-static const char *i440fx_qtest_argv = TARGET_NAME " -machine accel=qtest"
+static const char *i440fx_qtest_argv = TARGET_NAME " -accel qtest"
" -m 0 -display none";
static GString *i440fx_argv(FuzzTarget *t)
{
diff --git a/tests/qtest/fuzz/qos_fuzz.c b/tests/qtest/fuzz/qos_fuzz.c
index d3839bf9994..9267e63889d 100644
--- a/tests/qtest/fuzz/qos_fuzz.c
+++ b/tests/qtest/fuzz/qos_fuzz.c
@@ -84,7 +84,7 @@ static GString *qos_build_main_args(void)
}
/* Prepend the arguments that we need */
g_string_prepend(cmd_line,
- TARGET_NAME " -display none -machine accel=qtest -m 64 ");
+ TARGET_NAME " -display none -accel qtest -m 64 ");
return cmd_line;
}
diff --git a/scripts/oss-fuzz/output_reproducer.py b/scripts/oss-fuzz/output_reproducer.py
index e8ef76b3413..840da3b5a5b 100755
--- a/scripts/oss-fuzz/output_reproducer.py
+++ b/scripts/oss-fuzz/output_reproducer.py
@@ -64,8 +64,6 @@ def c_reproducer(name, args, trace):
# libqtest will add its own qtest args, so get rid of them
args = args.replace("-accel qtest","")
- args = args.replace(",accel=qtest","")
- args = args.replace("-machine accel=qtest","")
args = args.replace("-qtest stdio","")
result.append("""QTestState *s = qtest_init("{}");""".format(args))
for l in trace.splitlines():
diff --git a/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py b/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
index b154a25508f..f3813944d3b 100755
--- a/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
+++ b/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
@@ -5,15 +5,15 @@
Use this to convert qtest log info from a generic fuzzer input into a qtest
trace that you can feed into a standard qemu-system process. Example usage:
-QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \
+QEMU_FUZZ_ARGS="-machine q35 -accel qtest" QEMU_FUZZ_OBJECTS="*" \
./i386-softmmu/qemu-fuzz-i386 --fuzz-target=generic-pci-fuzz
# .. Finds some crash
QTEST_LOG=1 FUZZ_SERIALIZE_QTEST=1 \
-QEMU_FUZZ_ARGS="-machine q35,accel=qtest" QEMU_FUZZ_OBJECTS="*" \
+QEMU_FUZZ_ARGS="-machine q35 -accel qtest" QEMU_FUZZ_OBJECTS="*" \
./i386-softmmu/qemu-fuzz-i386 --fuzz-target=generic-pci-fuzz
/path/to/crash 2> qtest_log_output
scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py qtest_log_output > qtest_trace
-./i386-softmmu/qemu-fuzz-i386 -machine q35,accel=qtest \
+./i386-softmmu/qemu-fuzz-i386 -machine q35 -accel qtest \
-qtest stdio < qtest_trace
### Details ###
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo, accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
the device-crash-test script.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
scripts/device-crash-test | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index da8b56edd99..2b139e29ba0 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -295,7 +295,10 @@ class QemuBinaryInfo(object):
self._machine_info = {}
dbg("devtype: %r", devtype)
- args = ['-S', '-machine', 'none,accel=kvm:tcg']
+ args = ['-S',
+ '-machine', 'none',
+ '-accel', 'kvm:tcg',
+ ]
dbg("querying info for QEMU binary: %s", binary)
vm = QEMUMachine(binary=binary, args=args)
vm.launch()
@@ -358,7 +361,9 @@ def checkOneCase(args, testcase):
dbg("will test: %r", testcase)
- args = ['-S', '-machine', '%s,accel=%s' % (machine, accel),
+ args = ['-S',
+ '-machine', machine,
+ '-accel', accel,
'-device', qemuOptsEscape(device)]
cmdline = ' '.join([binary] + args)
dbg("will launch QEMU: %s", cmdline)
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo,accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
the device-crash-test script.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
scripts/device-crash-test | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index da8b56edd99..2b139e29ba0 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -295,7 +295,10 @@ class QemuBinaryInfo(object):
self._machine_info = {}
dbg("devtype: %r", devtype)
- args = ['-S', '-machine', 'none,accel=kvm:tcg']
+ args = ['-S',
+ '-machine', 'none',
+ '-accel', 'kvm:tcg',
+ ]
dbg("querying info for QEMU binary: %s", binary)
vm = QEMUMachine(binary=binary, args=args)
vm.launch()
@@ -358,7 +361,9 @@ def checkOneCase(args, testcase):
dbg("will test: %r", testcase)
- args = ['-S', '-machine', '%s,accel=%s' % (machine, accel),
+ args = ['-S',
+ '-machine', machine,
+ '-accel', accel,
'-device', qemuOptsEscape(device)]
cmdline = ' '.join([binary] + args)
dbg("will launch QEMU: %s", cmdline)
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Update the documentation when TCG is referred to.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
docs/about/removed-features.rst | 2 +-
linux-user/s390x/target_proc.h | 2 +-
accel/tcg/monitor.c | 4 ++--
system/vl.c | 2 +-
tests/qtest/qmp-cmd-test.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index ee6455aeeeb..d96dc5e80bc 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -216,7 +216,7 @@ The ``enforce-config-section`` property was replaced by the
``-no-kvm`` (removed in 5.2)
''''''''''''''''''''''''''''
-The ``-no-kvm`` argument was a synonym for setting ``-machine accel=tcg``.
+The ``-no-kvm`` argument was a synonym for setting ``-accel tcg``.
``-realtime`` (removed in 6.0)
''''''''''''''''''''''''''''''
diff --git a/linux-user/s390x/target_proc.h b/linux-user/s390x/target_proc.h
index a4a4821ea5c..f443d8f8080 100644
--- a/linux-user/s390x/target_proc.h
+++ b/linux-user/s390x/target_proc.h
@@ -7,7 +7,7 @@
#define S390X_TARGET_PROC_H
/*
- * Emulate what a Linux kernel running in qemu-system-s390x -M accel=tcg would
+ * Emulate what a Linux kernel running in 'qemu-system-s390x -accel tcg' would
* show in /proc/cpuinfo.
*
* Skip the following in order to match the missing support in op_ecag():
diff --git a/accel/tcg/monitor.c b/accel/tcg/monitor.c
index 093efe97144..0430b6e1514 100644
--- a/accel/tcg/monitor.c
+++ b/accel/tcg/monitor.c
@@ -204,7 +204,7 @@ HumanReadableText *qmp_x_query_jit(Error **errp)
g_autoptr(GString) buf = g_string_new("");
if (!tcg_enabled()) {
- error_setg(errp, "JIT information is only available with accel=tcg");
+ error_setg(errp, "JIT information is only available with TCG");
return NULL;
}
@@ -226,7 +226,7 @@ HumanReadableText *qmp_x_query_opcount(Error **errp)
if (!tcg_enabled()) {
error_setg(errp,
- "Opcode count information is only available with accel=tcg");
+ "Opcode count information is only available with TCG");
return NULL;
}
diff --git a/system/vl.c b/system/vl.c
index 54998fdbc7e..c056fcb740c 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2385,7 +2385,7 @@ static void configure_accelerators(const char *progname)
for (tmp = accel_list; *tmp; tmp++) {
/*
* Filter invalid accelerators here, to prevent obscenities
- * such as "-machine accel=tcg,,thread=single".
+ * such as "-accel tcg,,thread=single".
*/
if (accel_find(*tmp)) {
qemu_opts_parse_noisily(qemu_find_opts("accel"), *tmp, true);
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index 2c15f609584..83f4a2b451b 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -49,7 +49,7 @@ static int query_error_class(const char *cmd)
{ "query-vm-generation-id", ERROR_CLASS_GENERIC_ERROR },
/* Only valid with a USB bus added */
{ "x-query-usb", ERROR_CLASS_GENERIC_ERROR },
- /* Only valid with accel=tcg */
+ /* Only valid with TCG */
{ "x-query-jit", ERROR_CLASS_GENERIC_ERROR },
{ "x-query-opcount", ERROR_CLASS_GENERIC_ERROR },
{ "xen-event-list", ERROR_CLASS_GENERIC_ERROR },
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo, accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Update the documentation when TCG is referred to.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
docs/about/removed-features.rst | 2 +-
linux-user/s390x/target_proc.h | 2 +-
accel/tcg/monitor.c | 4 ++--
system/vl.c | 2 +-
tests/qtest/qmp-cmd-test.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst
index ee6455aeeeb..d96dc5e80bc 100644
--- a/docs/about/removed-features.rst
+++ b/docs/about/removed-features.rst
@@ -216,7 +216,7 @@ The ``enforce-config-section`` property was replaced by the
``-no-kvm`` (removed in 5.2)
''''''''''''''''''''''''''''
-The ``-no-kvm`` argument was a synonym for setting ``-machine accel=tcg``.
+The ``-no-kvm`` argument was a synonym for setting ``-accel tcg``.
``-realtime`` (removed in 6.0)
''''''''''''''''''''''''''''''
diff --git a/linux-user/s390x/target_proc.h b/linux-user/s390x/target_proc.h
index a4a4821ea5c..f443d8f8080 100644
--- a/linux-user/s390x/target_proc.h
+++ b/linux-user/s390x/target_proc.h
@@ -7,7 +7,7 @@
#define S390X_TARGET_PROC_H
/*
- * Emulate what a Linux kernel running in qemu-system-s390x -M accel=tcg would
+ * Emulate what a Linux kernel running in 'qemu-system-s390x -accel tcg' would
* show in /proc/cpuinfo.
*
* Skip the following in order to match the missing support in op_ecag():
diff --git a/accel/tcg/monitor.c b/accel/tcg/monitor.c
index 093efe97144..0430b6e1514 100644
--- a/accel/tcg/monitor.c
+++ b/accel/tcg/monitor.c
@@ -204,7 +204,7 @@ HumanReadableText *qmp_x_query_jit(Error **errp)
g_autoptr(GString) buf = g_string_new("");
if (!tcg_enabled()) {
- error_setg(errp, "JIT information is only available with accel=tcg");
+ error_setg(errp, "JIT information is only available with TCG");
return NULL;
}
@@ -226,7 +226,7 @@ HumanReadableText *qmp_x_query_opcount(Error **errp)
if (!tcg_enabled()) {
error_setg(errp,
- "Opcode count information is only available with accel=tcg");
+ "Opcode count information is only available with TCG");
return NULL;
}
diff --git a/system/vl.c b/system/vl.c
index 54998fdbc7e..c056fcb740c 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2385,7 +2385,7 @@ static void configure_accelerators(const char *progname)
for (tmp = accel_list; *tmp; tmp++) {
/*
* Filter invalid accelerators here, to prevent obscenities
- * such as "-machine accel=tcg,,thread=single".
+ * such as "-accel tcg,,thread=single".
*/
if (accel_find(*tmp)) {
qemu_opts_parse_noisily(qemu_find_opts("accel"), *tmp, true);
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index 2c15f609584..83f4a2b451b 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -49,7 +49,7 @@ static int query_error_class(const char *cmd)
{ "query-vm-generation-id", ERROR_CLASS_GENERIC_ERROR },
/* Only valid with a USB bus added */
{ "x-query-usb", ERROR_CLASS_GENERIC_ERROR },
- /* Only valid with accel=tcg */
+ /* Only valid with TCG */
{ "x-query-jit", ERROR_CLASS_GENERIC_ERROR },
{ "x-query-opcount", ERROR_CLASS_GENERIC_ERROR },
{ "xen-event-list", ERROR_CLASS_GENERIC_ERROR },
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo, accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Update the documentation when KVM is referred to.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
docs/bypass-iommu.txt | 3 ++-
docs/nvdimm.txt | 2 +-
docs/specs/tpm.rst | 2 +-
docs/system/arm/cpu-features.rst | 2 +-
docs/system/cpu-hotplug.rst | 2 +-
docs/system/ppc/powernv.rst | 2 +-
docs/system/ppc/pseries.rst | 4 ++--
scripts/device-crash-test | 2 +-
8 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/docs/bypass-iommu.txt b/docs/bypass-iommu.txt
index e6677bddd32..2ef0e0f6a65 100644
--- a/docs/bypass-iommu.txt
+++ b/docs/bypass-iommu.txt
@@ -51,7 +51,8 @@ And we got:
x86 architecture:
qemu-system-x86_64 \
- -machine q35,accel=kvm,default_bus_bypass_iommu=true \
+ -accel kvm \
+ -machine q35,default_bus_bypass_iommu=true \
-device pxb-pcie,bus_nr=0x10,id=pci.10,bus=pcie.0,addr=0x3 \
-device pxb-pcie,bus_nr=0x20,id=pci.20,bus=pcie.0,addr=0x4,bypass_iommu=true \
-device intel-iommu \
diff --git a/docs/nvdimm.txt b/docs/nvdimm.txt
index fd7773dc5ab..d589c3a9b77 100644
--- a/docs/nvdimm.txt
+++ b/docs/nvdimm.txt
@@ -228,7 +228,7 @@ which allows the platform to communicate what features it supports related to
NVDIMM data persistence. Users can provide a persistence value to a guest via
the optional "nvdimm-persistence" machine command line option:
- -machine pc,accel=kvm,nvdimm,nvdimm-persistence=cpu
+ -machine pc,nvdimm,nvdimm-persistence=cpu
There are currently two valid values for this option:
diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
index 1ad36ad7099..c50bb1cec01 100644
--- a/docs/specs/tpm.rst
+++ b/docs/specs/tpm.rst
@@ -329,7 +329,7 @@ In case a pSeries machine is emulated, use the following command line:
.. code-block:: console
- qemu-system-ppc64 -display sdl -machine pseries,accel=kvm \
+ qemu-system-ppc64 -display sdl -accel kvm -machine pseries \
-m 1024 -bios slof.bin -boot menu=on \
-nodefaults -device VGA -device pci-ohci -device usb-kbd \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
diff --git a/docs/system/arm/cpu-features.rst b/docs/system/arm/cpu-features.rst
index a5fb929243c..4aed91a987d 100644
--- a/docs/system/arm/cpu-features.rst
+++ b/docs/system/arm/cpu-features.rst
@@ -329,7 +329,7 @@ SVE CPU Property Examples
3) When KVM is enabled, implicitly enable all host CPU supported vector
lengths with the ``host`` CPU type::
- $ qemu-system-aarch64 -M virt,accel=kvm -cpu host
+ $ qemu-system-aarch64 -M virt -accel kvm -cpu host
4) Only enable the 128-bit vector length::
diff --git a/docs/system/cpu-hotplug.rst b/docs/system/cpu-hotplug.rst
index cc50937c36c..64314ccfd6f 100644
--- a/docs/system/cpu-hotplug.rst
+++ b/docs/system/cpu-hotplug.rst
@@ -12,7 +12,7 @@ vCPU hotplug
allow vCPU hotplug)::
$ qemu-system-x86_64 -display none -no-user-config -m 2048 \
- -nodefaults -monitor stdio -machine pc,accel=kvm,usb=off \
+ -nodefaults -monitor stdio -accel kvm -machine pc,usb=off \
-smp 1,maxcpus=2 -cpu IvyBridge-IBRS \
-qmp unix:/tmp/qmp-sock,server=on,wait=off
diff --git a/docs/system/ppc/powernv.rst b/docs/system/ppc/powernv.rst
index de7a807ac76..689f9c81a02 100644
--- a/docs/system/ppc/powernv.rst
+++ b/docs/system/ppc/powernv.rst
@@ -63,7 +63,7 @@ powernv. kvm-pr in theory could be used as a valid accel option but
this isn't supported by kvm-pr at this moment.
To spare users from dealing with not so informative errors when attempting
-to use accel=kvm, the powernv machine will throw an error informing that
+to use '-accel kvm', the powernv machine will throw an error informing that
KVM is not supported. This can be revisited in the future if kvm-pr (or
any other KVM alternative) is usable as KVM accel for this machine.
diff --git a/docs/system/ppc/pseries.rst b/docs/system/ppc/pseries.rst
index bbc51aa7fcd..3b18d2ee1ef 100644
--- a/docs/system/ppc/pseries.rst
+++ b/docs/system/ppc/pseries.rst
@@ -164,9 +164,9 @@ Currently, there are two implementations of KVM on Power, ``kvm_hv.ko`` and
If a host supports both KVM modes, and both KVM kernel modules are loaded, it is
possible to switch between the two modes with the ``kvm-type`` parameter:
-* Use ``qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR`` to use the
+* Use ``qemu-system-ppc64 -accel kvm -M pseries,kvm-type=PR`` to use the
``kvm_pr.ko`` kernel module.
-* Use ``qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV`` to use ``kvm_hv.ko``
+* Use ``qemu-system-ppc64 -accel kvm -M pseries,kvm-type=HV`` to use ``kvm_hv.ko``
instead.
KVM-PR
diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index 2b139e29ba0..2c6fd7c6f6e 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -147,7 +147,7 @@ ERROR_RULE_LIST = [
# "spapr-cpu-core needs a pseries machine"
{'machine':'(?!pseries).*', 'device':'.*-spapr-cpu-core', 'expected':True},
- # KVM-specific devices shouldn't be tried without accel=kvm:
+ # KVM-specific devices shouldn't be tried without '-accel kvm':
{'accel':'(?!kvm).*', 'device':'kvmclock', 'expected':True},
# xen-specific machines and devices:
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
Update the documentation when KVM is referred to.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
docs/bypass-iommu.txt | 3 ++-
docs/nvdimm.txt | 2 +-
docs/specs/tpm.rst | 2 +-
docs/system/arm/cpu-features.rst | 2 +-
docs/system/cpu-hotplug.rst | 2 +-
docs/system/ppc/powernv.rst | 2 +-
docs/system/ppc/pseries.rst | 4 ++--
scripts/device-crash-test | 2 +-
8 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/docs/bypass-iommu.txt b/docs/bypass-iommu.txt
index e6677bddd32..2ef0e0f6a65 100644
--- a/docs/bypass-iommu.txt
+++ b/docs/bypass-iommu.txt
@@ -51,7 +51,8 @@ And we got:
x86 architecture:
qemu-system-x86_64 \
- -machine q35,accel=kvm,default_bus_bypass_iommu=true \
+ -accel kvm \
+ -machine q35,default_bus_bypass_iommu=true \
-device pxb-pcie,bus_nr=0x10,id=pci.10,bus=pcie.0,addr=0x3 \
-device pxb-pcie,bus_nr=0x20,id=pci.20,bus=pcie.0,addr=0x4,bypass_iommu=true \
-device intel-iommu \
diff --git a/docs/nvdimm.txt b/docs/nvdimm.txt
index fd7773dc5ab..d589c3a9b77 100644
--- a/docs/nvdimm.txt
+++ b/docs/nvdimm.txt
@@ -228,7 +228,7 @@ which allows the platform to communicate what features it supports related to
NVDIMM data persistence. Users can provide a persistence value to a guest via
the optional "nvdimm-persistence" machine command line option:
- -machine pc,accel=kvm,nvdimm,nvdimm-persistence=cpu
+ -machine pc,nvdimm,nvdimm-persistence=cpu
There are currently two valid values for this option:
diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
index 1ad36ad7099..c50bb1cec01 100644
--- a/docs/specs/tpm.rst
+++ b/docs/specs/tpm.rst
@@ -329,7 +329,7 @@ In case a pSeries machine is emulated, use the following command line:
.. code-block:: console
- qemu-system-ppc64 -display sdl -machine pseries,accel=kvm \
+ qemu-system-ppc64 -display sdl -accel kvm -machine pseries \
-m 1024 -bios slof.bin -boot menu=on \
-nodefaults -device VGA -device pci-ohci -device usb-kbd \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
diff --git a/docs/system/arm/cpu-features.rst b/docs/system/arm/cpu-features.rst
index a5fb929243c..4aed91a987d 100644
--- a/docs/system/arm/cpu-features.rst
+++ b/docs/system/arm/cpu-features.rst
@@ -329,7 +329,7 @@ SVE CPU Property Examples
3) When KVM is enabled, implicitly enable all host CPU supported vector
lengths with the ``host`` CPU type::
- $ qemu-system-aarch64 -M virt,accel=kvm -cpu host
+ $ qemu-system-aarch64 -M virt -accel kvm -cpu host
4) Only enable the 128-bit vector length::
diff --git a/docs/system/cpu-hotplug.rst b/docs/system/cpu-hotplug.rst
index cc50937c36c..64314ccfd6f 100644
--- a/docs/system/cpu-hotplug.rst
+++ b/docs/system/cpu-hotplug.rst
@@ -12,7 +12,7 @@ vCPU hotplug
allow vCPU hotplug)::
$ qemu-system-x86_64 -display none -no-user-config -m 2048 \
- -nodefaults -monitor stdio -machine pc,accel=kvm,usb=off \
+ -nodefaults -monitor stdio -accel kvm -machine pc,usb=off \
-smp 1,maxcpus=2 -cpu IvyBridge-IBRS \
-qmp unix:/tmp/qmp-sock,server=on,wait=off
diff --git a/docs/system/ppc/powernv.rst b/docs/system/ppc/powernv.rst
index de7a807ac76..689f9c81a02 100644
--- a/docs/system/ppc/powernv.rst
+++ b/docs/system/ppc/powernv.rst
@@ -63,7 +63,7 @@ powernv. kvm-pr in theory could be used as a valid accel option but
this isn't supported by kvm-pr at this moment.
To spare users from dealing with not so informative errors when attempting
-to use accel=kvm, the powernv machine will throw an error informing that
+to use '-accel kvm', the powernv machine will throw an error informing that
KVM is not supported. This can be revisited in the future if kvm-pr (or
any other KVM alternative) is usable as KVM accel for this machine.
diff --git a/docs/system/ppc/pseries.rst b/docs/system/ppc/pseries.rst
index bbc51aa7fcd..3b18d2ee1ef 100644
--- a/docs/system/ppc/pseries.rst
+++ b/docs/system/ppc/pseries.rst
@@ -164,9 +164,9 @@ Currently, there are two implementations of KVM on Power, ``kvm_hv.ko`` and
If a host supports both KVM modes, and both KVM kernel modules are loaded, it is
possible to switch between the two modes with the ``kvm-type`` parameter:
-* Use ``qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR`` to use the
+* Use ``qemu-system-ppc64 -accel kvm -M pseries,kvm-type=PR`` to use the
``kvm_pr.ko`` kernel module.
-* Use ``qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV`` to use ``kvm_hv.ko``
+* Use ``qemu-system-ppc64 -accel kvm -M pseries,kvm-type=HV`` to use ``kvm_hv.ko``
instead.
KVM-PR
diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index 2b139e29ba0..2c6fd7c6f6e 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -147,7 +147,7 @@ ERROR_RULE_LIST = [
# "spapr-cpu-core needs a pseries machine"
{'machine':'(?!pseries).*', 'device':'.*-spapr-cpu-core', 'expected':True},
- # KVM-specific devices shouldn't be tried without accel=kvm:
+ # KVM-specific devices shouldn't be tried without '-accel kvm':
{'accel':'(?!kvm).*', 'device':'kvmclock', 'expected':True},
# xen-specific machines and devices:
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo, accel=bar'
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
-1 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
The new form started to be documented in commit 8d4e9146b35 ("tcg:
add options for enabling MTTCG"); it is safe to remove the mentions
of the legacy option.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
qemu-options.hx | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index dacc9790a4b..11f0aab1470 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -27,8 +27,6 @@ ERST
DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
"-machine [type=]name[,prop[=value][,...]]\n"
" selects emulated machine ('-machine help' for list)\n"
- " property accel=accel1[:accel2[:...]] selects accelerator\n"
- " supported accelerators are kvm, xen, hvf, nvmm, whpx or tcg (default: tcg)\n"
" vmport=on|off|auto controls emulation of vmport (default: auto)\n"
" dump-guest-core=on|off include guest memory in a core dump (default=on)\n"
" mem-merge=on|off controls memory merge support (default: on)\n"
@@ -59,13 +57,6 @@ SRST
Supported machine properties are:
- ``accel=accels1[:accels2[:...]]``
- This is used to enable an accelerator. Depending on the target
- architecture, kvm, xen, hvf, nvmm, whpx or tcg can be available.
- By default, tcg is used. If there is more than one accelerator
- specified, the next one is used if the previous one fails to
- initialize.
-
``vmport=on|off|auto``
Enables emulation of VMWare IO port, for vmmouse etc. auto says
to select the value based on accel and i8042. For accel=xen or
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo,accel=bar'
@ 2024-12-03 9:21 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm, Thomas Huth,
Philippe Mathieu-Daudé
Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
options") we prefer the '-accel bar' command line option.
The new form started to be documented in commit 8d4e9146b35 ("tcg:
add options for enabling MTTCG"); it is safe to remove the mentions
of the legacy option.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
qemu-options.hx | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index dacc9790a4b..11f0aab1470 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -27,8 +27,6 @@ ERST
DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
"-machine [type=]name[,prop[=value][,...]]\n"
" selects emulated machine ('-machine help' for list)\n"
- " property accel=accel1[:accel2[:...]] selects accelerator\n"
- " supported accelerators are kvm, xen, hvf, nvmm, whpx or tcg (default: tcg)\n"
" vmport=on|off|auto controls emulation of vmport (default: auto)\n"
" dump-guest-core=on|off include guest memory in a core dump (default=on)\n"
" mem-merge=on|off controls memory merge support (default: on)\n"
@@ -59,13 +57,6 @@ SRST
Supported machine properties are:
- ``accel=accels1[:accels2[:...]]``
- This is used to enable an accelerator. Depending on the target
- architecture, kvm, xen, hvf, nvmm, whpx or tcg can be available.
- By default, tcg is used. If there is more than one accelerator
- specified, the next one is used if the previous one fails to
- initialize.
-
``vmport=on|off|auto``
Enables emulation of VMWare IO port, for vmmouse etc. auto says
to select the value based on accel and i8042. For accel=xen or
--
2.45.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:34 ` Daniel P. Berrangé
-1 siblings, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:34 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:47AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> functional tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/functional/test_ppc64_hv.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:34 ` Daniel P. Berrangé
-1 siblings, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:34 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:48AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> functional tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/functional/test_virtio_gpu.py | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/7] tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 3/7] tests/qtest/fuzz: " Philippe Mathieu-Daudé
@ 2024-12-03 9:35 ` Daniel P. Berrangé
2024-12-03 10:25 ` Thomas Huth
1 sibling, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:35 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:49AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> fuzzer scripts and tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/qtest/fuzz/generic_fuzz.c | 2 +-
> tests/qtest/fuzz/i440fx_fuzz.c | 2 +-
> tests/qtest/fuzz/qos_fuzz.c | 2 +-
> scripts/oss-fuzz/output_reproducer.py | 2 --
> scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 6 +++---
> 5 files changed, 6 insertions(+), 8 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:38 ` Daniel P. Berrangé
-1 siblings, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:38 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:50AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> the device-crash-test script.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> scripts/device-crash-test | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/device-crash-test b/scripts/device-crash-test
> index da8b56edd99..2b139e29ba0 100755
> --- a/scripts/device-crash-test
> +++ b/scripts/device-crash-test
> @@ -295,7 +295,10 @@ class QemuBinaryInfo(object):
> self._machine_info = {}
>
> dbg("devtype: %r", devtype)
> - args = ['-S', '-machine', 'none,accel=kvm:tcg']
> + args = ['-S',
> + '-machine', 'none',
> + '-accel', 'kvm:tcg',
-accel doesn't work this way - that is legacy syntax sugar from -machine
You need multiple args:
-accel kvm -accel tcg
> + ]
> dbg("querying info for QEMU binary: %s", binary)
> vm = QEMUMachine(binary=binary, args=args)
> vm.launch()
> @@ -358,7 +361,9 @@ def checkOneCase(args, testcase):
>
> dbg("will test: %r", testcase)
>
> - args = ['-S', '-machine', '%s,accel=%s' % (machine, accel),
> + args = ['-S',
> + '-machine', machine,
> + '-accel', accel,
I've not checked what 'accel' value is - if that's another compound
value like 'kvm:tcg', it'll need to be turned into an array, and
expanded to multiple '-accel' args.
> '-device', qemuOptsEscape(device)]
> cmdline = ' '.join([binary] + args)
> dbg("will launch QEMU: %s", cmdline)
> --
> 2.45.2
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:42 ` Daniel P. Berrangé
-1 siblings, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:42 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:51AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Update the documentation when TCG is referred to.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> docs/about/removed-features.rst | 2 +-
> linux-user/s390x/target_proc.h | 2 +-
> accel/tcg/monitor.c | 4 ++--
> system/vl.c | 2 +-
> tests/qtest/qmp-cmd-test.c | 2 +-
> 5 files changed, 6 insertions(+), 6 deletions(-)
> diff --git a/system/vl.c b/system/vl.c
> index 54998fdbc7e..c056fcb740c 100644
> --- a/system/vl.c
> +++ b/system/vl.c
> @@ -2385,7 +2385,7 @@ static void configure_accelerators(const char *progname)
> for (tmp = accel_list; *tmp; tmp++) {
> /*
> * Filter invalid accelerators here, to prevent obscenities
> - * such as "-machine accel=tcg,,thread=single".
> + * such as "-accel tcg,,thread=single".
> */
I'm not sure I understand what the old message was trying to archive, but
at the same time I'm even less convinced it makes sense to change the
comment.
> if (accel_find(*tmp)) {
> qemu_opts_parse_noisily(qemu_find_opts("accel"), *tmp, true);
For all of the patch, except for that chunk above:
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:42 ` Daniel P. Berrangé
-1 siblings, 0 replies; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:42 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:52AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Update the documentation when KVM is referred to.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> docs/bypass-iommu.txt | 3 ++-
> docs/nvdimm.txt | 2 +-
> docs/specs/tpm.rst | 2 +-
> docs/system/arm/cpu-features.rst | 2 +-
> docs/system/cpu-hotplug.rst | 2 +-
> docs/system/ppc/powernv.rst | 2 +-
> docs/system/ppc/pseries.rst | 4 ++--
> scripts/device-crash-test | 2 +-
> 8 files changed, 10 insertions(+), 9 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
@ 2024-12-03 9:54 ` Daniel P. Berrangé
2024-12-03 10:00 ` Philippe Mathieu-Daudé
-1 siblings, 1 reply; 27+ messages in thread
From: Daniel P. Berrangé @ 2024-12-03 9:54 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On Tue, Dec 03, 2024 at 10:21:53AM +0100, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> The new form started to be documented in commit 8d4e9146b35 ("tcg:
> add options for enabling MTTCG"); it is safe to remove the mentions
> of the legacy option.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> qemu-options.hx | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/qemu-options.hx b/qemu-options.hx
> index dacc9790a4b..11f0aab1470 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -27,8 +27,6 @@ ERST
> DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
> "-machine [type=]name[,prop[=value][,...]]\n"
> " selects emulated machine ('-machine help' for list)\n"
> - " property accel=accel1[:accel2[:...]] selects accelerator\n"
> - " supported accelerators are kvm, xen, hvf, nvmm, whpx or tcg (default: tcg)\n"
> " vmport=on|off|auto controls emulation of vmport (default: auto)\n"
> " dump-guest-core=on|off include guest memory in a core dump (default=on)\n"
> " mem-merge=on|off controls memory merge support (default: on)\n"
> @@ -59,13 +57,6 @@ SRST
>
> Supported machine properties are:
>
> - ``accel=accels1[:accels2[:...]]``
> - This is used to enable an accelerator. Depending on the target
> - architecture, kvm, xen, hvf, nvmm, whpx or tcg can be available.
> - By default, tcg is used. If there is more than one accelerator
> - specified, the next one is used if the previous one fails to
> - initialize.
> -
I'm not convinced we should be removing documentation for options that
currently exist and remain supported.
The documentation should be updated to say that we prefer use of '-accel'
instead at least.
Beyond that, what is our long term intention with '-machine accel=xxx' ?
Is this a case where we are happy to leave '-machine accel=' as syntax
sugar forever ? Or is this a case where we want to deprecate it and
eventually remove its impl (and thus the documention here)
> ``vmport=on|off|auto``
> Enables emulation of VMWare IO port, for vmmouse etc. auto says
> to select the value based on accel and i8042. For accel=xen or
> --
> 2.45.2
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:54 ` Daniel P. Berrangé
@ 2024-12-03 10:00 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-03 10:00 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: qemu-devel, Paolo Bonzini, xen-devel, qemu-ppc, Markus Armbruster,
qemu-arm, Thomas Huth
On 3/12/24 10:54, Daniel P. Berrangé wrote:
> On Tue, Dec 03, 2024 at 10:21:53AM +0100, Philippe Mathieu-Daudé wrote:
>> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
>> options") we prefer the '-accel bar' command line option.
>>
>> The new form started to be documented in commit 8d4e9146b35 ("tcg:
>> add options for enabling MTTCG"); it is safe to remove the mentions
>> of the legacy option.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> qemu-options.hx | 9 ---------
>> 1 file changed, 9 deletions(-)
> I'm not convinced we should be removing documentation for options that
> currently exist and remain supported.
>
> The documentation should be updated to say that we prefer use of '-accel'
> instead at least.
>
> Beyond that, what is our long term intention with '-machine accel=xxx' ?
>
> Is this a case where we are happy to leave '-machine accel=' as syntax
> sugar forever ? Or is this a case where we want to deprecate it and
> eventually remove its impl (and thus the documention here)
Right, we should deprecate and then remove.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
(?)
@ 2024-12-03 10:20 ` Thomas Huth
-1 siblings, 0 replies; 27+ messages in thread
From: Thomas Huth @ 2024-12-03 10:20 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm
On 03/12/2024 10.21, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> functional tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/functional/test_ppc64_hv.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
> index 312248bbfe4..536a433b993 100755
> --- a/tests/functional/test_ppc64_hv.py
> +++ b/tests/functional/test_ppc64_hv.py
> @@ -138,7 +138,8 @@ def do_test_kvm(self, hpt=False):
> else:
> append = ''
> exec_command(self, 'qemu-system-ppc64 -nographic -smp 2 -m 1g '
> - '-machine pseries,x-vof=on,accel=kvm '
> + '-accel kvm '
> + '-machine pseries,x-vof=on '
> '-machine cap-cfpc=broken,cap-sbbc=broken,'
> 'cap-ibs=broken,cap-ccf-assist=off '
> '-drive file=/dev/nvme0n1,format=raw,readonly=on '
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
(?)
@ 2024-12-03 10:23 ` Thomas Huth
-1 siblings, 0 replies; 27+ messages in thread
From: Thomas Huth @ 2024-12-03 10:23 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm
On 03/12/2024 10.21, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> functional tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/functional/test_virtio_gpu.py | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/functional/test_virtio_gpu.py b/tests/functional/test_virtio_gpu.py
> index d5027487ac4..cc0ec234861 100755
> --- a/tests/functional/test_virtio_gpu.py
> +++ b/tests/functional/test_virtio_gpu.py
> @@ -61,7 +61,8 @@ def test_virtio_vga_virgl(self):
> self.vm.set_console()
> self.vm.add_args("-cpu", "host")
> self.vm.add_args("-m", "2G")
> - self.vm.add_args("-machine", "pc,accel=kvm")
> + self.vm.add_args('-accel', 'kvm')
> + self.vm.add_args("-machine", "pc")
While you're at it, could you please change this test to use
"self.set_machine('pc')" at the very beginning of the test function instead
of using -machine pc here? That way the test gets properly skipped in case
the machine is not available in the QEMU binary.
Thanks,
Thomas
> self.vm.add_args("-device", "virtio-vga-gl")
> self.vm.add_args("-display", "egl-headless")
> self.vm.add_args(
> @@ -118,10 +119,11 @@ def test_vhost_user_vga_virgl(self):
> )
>
> self.vm.set_console()
> + self.vm.add_args('-accel', 'kvm')
> self.vm.add_args("-cpu", "host")
> self.vm.add_args("-m", "2G")
> self.vm.add_args("-object", "memory-backend-memfd,id=mem,size=2G")
> - self.vm.add_args("-machine", "pc,memory-backend=mem,accel=kvm")
> + self.vm.add_args("-machine", "pc,memory-backend=mem")
> self.vm.add_args("-chardev", "socket,id=vug,fd=%d" % qemu_sock.fileno())
> self.vm.add_args("-device", "vhost-user-vga,chardev=vug")
> self.vm.add_args("-display", "egl-headless")
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/7] tests/qtest/fuzz: Remove legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 3/7] tests/qtest/fuzz: " Philippe Mathieu-Daudé
2024-12-03 9:35 ` Daniel P. Berrangé
@ 2024-12-03 10:25 ` Thomas Huth
1 sibling, 0 replies; 27+ messages in thread
From: Thomas Huth @ 2024-12-03 10:25 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm
On 03/12/2024 10.21, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Replace '-machine foo,accel=bar' -> '-machine foo -accel bar' in
> fuzzer scripts and tests.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/qtest/fuzz/generic_fuzz.c | 2 +-
> tests/qtest/fuzz/i440fx_fuzz.c | 2 +-
> tests/qtest/fuzz/qos_fuzz.c | 2 +-
> scripts/oss-fuzz/output_reproducer.py | 2 --
> scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py | 6 +++---
> 5 files changed, 6 insertions(+), 8 deletions(-)
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar'
2024-12-03 9:21 ` [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
(?)
(?)
@ 2024-12-03 10:34 ` Thomas Huth
-1 siblings, 0 replies; 27+ messages in thread
From: Thomas Huth @ 2024-12-03 10:34 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Paolo Bonzini, Daniel P . Berrangé, xen-devel, qemu-ppc,
Markus Armbruster, qemu-arm
On 03/12/2024 10.21, Philippe Mathieu-Daudé wrote:
> Since commit 6f6e1698a68 ("vl: configure accelerators from -accel
> options") we prefer the '-accel bar' command line option.
>
> Update the documentation when KVM is referred to.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> docs/bypass-iommu.txt | 3 ++-
> docs/nvdimm.txt | 2 +-
> docs/specs/tpm.rst | 2 +-
> docs/system/arm/cpu-features.rst | 2 +-
> docs/system/cpu-hotplug.rst | 2 +-
> docs/system/ppc/powernv.rst | 2 +-
> docs/system/ppc/pseries.rst | 4 ++--
> scripts/device-crash-test | 2 +-
> 8 files changed, 10 insertions(+), 9 deletions(-)
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2024-12-03 10:34 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 9:21 [PATCH 0/7] cli: Remove mentions of legacy '-machine foo, accel=bar' command line Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 0/7] cli: Remove mentions of legacy '-machine foo,accel=bar' " Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 1/7] tests/functional/test_ppc64_hv: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:34 ` Daniel P. Berrangé
2024-12-03 10:20 ` Thomas Huth
2024-12-03 9:21 ` [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 2/7] tests/functional/test_virtio_gpu: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:34 ` Daniel P. Berrangé
2024-12-03 10:23 ` Thomas Huth
2024-12-03 9:21 ` [PATCH 3/7] tests/qtest/fuzz: " Philippe Mathieu-Daudé
2024-12-03 9:35 ` Daniel P. Berrangé
2024-12-03 10:25 ` Thomas Huth
2024-12-03 9:21 ` [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 4/7] scripts/device-crash-test: Remove legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:38 ` Daniel P. Berrangé
2024-12-03 9:21 ` [PATCH 5/7] accel/tcg: Remove mentions of " Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:42 ` [PATCH 5/7] accel/tcg: Remove mentions of legacy '-machine foo,accel=bar' Daniel P. Berrangé
2024-12-03 9:21 ` [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 6/7] accel/kvm: Remove mentions of legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:42 ` Daniel P. Berrangé
2024-12-03 10:34 ` Thomas Huth
2024-12-03 9:21 ` [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo, accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:21 ` [PATCH 7/7] qemu-options: Remove mentions of legacy '-machine foo,accel=bar' Philippe Mathieu-Daudé
2024-12-03 9:54 ` Daniel P. Berrangé
2024-12-03 10:00 ` Philippe Mathieu-Daudé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.