Misc patches (tests, docs, compat machines)
Hi!
The following changes since commit fb084237a3b78b20fd9d888dffd673b6656ea3be:
common-user: Really fix i386 calls to safe_syscall_set_errno_tail (2022-01-04 21:14:23 -0800)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2022-01-05
for you to fetch changes up to 057dc9a635fe37118a98b32e8bd9d8ed47b1a102:
docs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name (2022-01-05 11:10:13 +0100)
----------------------------------------------------------------
* Add compat machines for 7.0
* Some minor qtest and unit test improvements
* Remove -no-quit option
* Fixes for the docs
----------------------------------------------------------------
Cornelia Huck (1):
hw: Add compat machines for 7.0
Marc-André Lureau (1):
docs/sphinx: fix compatibility with sphinx < 1.8
Philippe Mathieu-Daudé (1):
tests/unit/test-util-sockets: Use g_file_open_tmp() to create temp file
Thomas Huth (5):
tests/qtest/test-x86-cpuid-compat: Check for machines before using them tests/qtest/hd-geo-test: Check for the lsi53c895a controller before using it
qemu-options: Remove the deprecated -no-quit option
gitlab-ci: Enable docs in the centos job docs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name
.gitlab-ci.d/buildtest.yml | 2 +- docs/about/deprecated.rst | 6 --- docs/about/removed-features.rst | 7 +++ docs/sphinx/fakedbusdoc.py | 4 +- docs/tools/qemu-trace-stap.rst | 24 +++++------ hw/arm/virt.c | 9 +++- hw/core/machine.c | 3 ++ hw/i386/pc.c | 3 ++ hw/i386/pc_piix.c | 14 +++++- hw/i386/pc_q35.c | 13 +++++- hw/ppc/spapr.c | 15 ++++++- hw/s390x/s390-virtio-ccw.c | 14 +++++- include/hw/boards.h | 3 ++ include/hw/i386/pc.h | 3 ++ qemu-options.hx | 8 ---- softmmu/vl.c | 8 +--- tests/qtest/hd-geo-test.c | 8 ++-- tests/qtest/test-x86-cpuid-compat.c | 85 +++++++++++++++++++++---------------- tests/unit/test-util-sockets.c | 6 ++- 19 files changed, 151 insertions(+), 84 deletions(-)
[PULL 1/8] hw: Add compat machines for 7.0
From: Cornelia Huck <[email protected]>
Add 7.0 machine types for arm/i440fx/q35/s390x/spapr.
Message-Id: <[email protected]>
--- hw/arm/virt.c | 9 ++++++++- hw/core/machine.c | 3 +++ hw/i386/pc.c | 3 +++ hw/i386/pc_piix.c | 14 +++++++++++++- hw/i386/pc_q35.c | 13 ++++++++++++- hw/ppc/spapr.c | 15 +++++++++++++-- hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++- include/hw/boards.h | 3 +++ include/hw/i386/pc.h | 3 +++ 9 files changed, 71 insertions(+), 6 deletions(-)
hw/arm/virt.c +8 -1
@@ -2856,10 +2856,17 @@ static void machvirt_machine_init(void) }type_init (machvirt_machine_init); +static void virt_machine_7_0_options (MachineClass *mc) +{ +} +DEFINE_VIRT_MACHINE_AS_LATEST(7, 0) +static void virt_machine_6_2_options (MachineClass *mc) { +virt_machine_7_0_options (mc); +compat_props_add (mc->compat_props, hw_compat_6_2, hw_compat_6_2_len); } -DEFINE_VIRT_MACHINE_AS_LATEST(6, 2) +DEFINE_VIRT_MACHINE(6, 2)static void virt_machine_6_1_options (MachineClass *mc) {
hw/core/machine.c +3 -0
@@ -37,6 +37,9 @@#include "hw/virtio/virtio.h" #include "hw/virtio/virtio-pci.h" +GlobalProperty hw_compat_6_2[] = {}; +const size_t hw_compat_6_2_len =G_N_ELEMENTS (hw_compat_6_2); +GlobalProperty hw_compat_6_1[] = { {"vhost-user-vsock-device" ,"seqpacket" ,"off" }, {"nvme-ns" ,"shared" ,"off" },
hw/i386/pc.c +3 -0
@@ -94,6 +94,9 @@#include "trace.h" #include CONFIG_DEVICES +GlobalProperty pc_compat_6_2[] = {}; +const size_t pc_compat_6_2_len =G_N_ELEMENTS (pc_compat_6_2); +GlobalProperty pc_compat_6_1[] = { {TYPE_X86_CPU ,"hv-version-id-build" ,"0x1bbc" }, {TYPE_X86_CPU ,"hv-version-id-major" ,"0x0006" },
hw/i386/pc_piix.c +13 -1
@@ -413,7 +413,7 @@ static void pc_i440fx_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); } -static void pc_i440fx_6_2_machine_options (MachineClass *m) +static void pc_i440fx_7_0_machine_options (MachineClass *m) {PCMachineClass *pcmc =PC_MACHINE_CLASS (m);pc_i440fx_machine_options (m);
@@ -422,6 +422,18 @@ static void pc_i440fx_6_2_machine_options(MachineClass *m) pcmc->default_cpu_version =1 ; } +DEFINE_I440FX_MACHINE (v7_0,"pc-i440fx-7.0" ,NULL , + pc_i440fx_7_0_machine_options); + +static void pc_i440fx_6_2_machine_options (MachineClass *m) +{ +pc_i440fx_7_0_machine_options (m); + m->alias =NULL ; + m->is_default = false; +compat_props_add (m->compat_props, hw_compat_6_2, hw_compat_6_2_len); +compat_props_add (m->compat_props, pc_compat_6_2, pc_compat_6_2_len); +} +DEFINE_I440FX_MACHINE (v6_2,"pc-i440fx-6.2" ,NULL , pc_i440fx_6_2_machine_options);
hw/i386/pc_q35.c +12 -1
@@ -360,7 +360,7 @@ static void pc_q35_machine_options(MachineClass *m) m->max_cpus =288 ; } -static void pc_q35_6_2_machine_options (MachineClass *m) +static void pc_q35_7_0_machine_options (MachineClass *m) {PCMachineClass *pcmc =PC_MACHINE_CLASS (m);pc_q35_machine_options (m);
@@ -368,6 +368,17 @@ static void pc_q35_6_2_machine_options(MachineClass *m) pcmc->default_cpu_version =1 ; } +DEFINE_Q35_MACHINE (v7_0,"pc-q35-7.0" ,NULL , + pc_q35_7_0_machine_options); + +static void pc_q35_6_2_machine_options (MachineClass *m) +{ +pc_q35_7_0_machine_options (m); + m->alias =NULL ; +compat_props_add (m->compat_props, hw_compat_6_2, hw_compat_6_2_len); +compat_props_add (m->compat_props, pc_compat_6_2, pc_compat_6_2_len); +} +DEFINE_Q35_MACHINE (v6_2,"pc-q35-6.2" ,NULL , pc_q35_6_2_machine_options);
hw/ppc/spapr.c +13 -2
@@ -4665,15 +4665,26 @@ static void spapr_machine_latest_class_options(MachineClass *mc) } \ type_init(spapr_machine_register_##suffix) +/* +* pseries-7.0 +*/ +static void spapr_machine_7_0_class_options(MachineClass *mc) +{ +/* Defaults for the latest behaviour inherited from the base class */ +} + +DEFINE_SPAPR_MACHINE(7_0, "7.0", true); +/* * pseries-6.2 */ static void spapr_machine_6_2_class_options (MachineClass *mc) { -/* Defaults for the latest behaviour inherited from the base class */ +spapr_machine_7_0_class_options (mc); +compat_props_add (mc->compat_props, hw_compat_6_2, hw_compat_6_2_len); } -DEFINE_SPAPR_MACHINE(6_2, "6.2", true); +DEFINE_SPAPR_MACHINE(6_2, "6.2", false);/* * pseries-6.1
hw/s390x/s390-virtio-ccw.c +13 -1
@@ -791,14 +791,26 @@ bool css_migration_enabled(void) } \ type_init(ccw_machine_register_##suffix) +static void ccw_machine_7_0_instance_options(MachineState *machine) +{ +} + +static void ccw_machine_7_0_class_options (MachineClass *mc) +{ +} +DEFINE_CCW_MACHINE(7_0, "7.0", true); +static void ccw_machine_6_2_instance_options (MachineState *machine) { +ccw_machine_7_0_instance_options (machine); }static void ccw_machine_6_2_class_options (MachineClass *mc) { +ccw_machine_7_0_class_options (mc); +compat_props_add (mc->compat_props, hw_compat_6_2, hw_compat_6_2_len); } -DEFINE_CCW_MACHINE(6_2, "6.2", true); +DEFINE_CCW_MACHINE(6_2, "6.2", false);static void ccw_machine_6_1_instance_options (MachineState *machine) {
include/hw/boards.h +3 -0
@@ -380,6 +380,9 @@ struct MachineState { } \ type_init(machine_initfn##_register_types) +extern GlobalProperty hw_compat_6_2[]; +extern const size_t hw_compat_6_2_len; +extern GlobalProperty hw_compat_6_1[];extern const size_t hw_compat_6_1_len;
include/hw/i386/pc.h +3 -0
@@ -196,6 +196,9 @@ void pc_madt_cpu_entry(AcpiDeviceIf *adev, int uid,/* sgx.c */ void pc_machine_init_sgx_epc (PCMachineState *pcms); +extern GlobalProperty pc_compat_6_2[]; +extern const size_t pc_compat_6_2_len; +extern GlobalProperty pc_compat_6_1[];extern const size_t pc_compat_6_1_len;
Signature · 1 line
2.27.0
[PULL 3/8] tests/qtest/hd-geo-test: Check for the lsi53c895a controller before using it
In reply to Thomas HuthThe lsi53c895a SCSI controller might have been disabled in the target binary, so let's check for its availability first before using it.
Message-Id: <[email protected]>
--- tests/qtest/hd-geo-test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tests/qtest/hd-geo-test.c +5 -3
@@ -960,9 +960,11 @@ int main(int argc, char **argv)qtest_add_func ("hd-geo/ide/device/user/chst" , test_ide_device_user_chst);if (have_qemu_img ()) {qtest_add_func ("hd-geo/override/ide" , test_override_ide); -qtest_add_func ("hd-geo/override/scsi" , test_override_scsi); -qtest_add_func ("hd-geo/override/scsi_2_controllers" , - test_override_scsi_2_controllers); +if (qtest_has_device ("lsi53c895a" )) { +qtest_add_func ("hd-geo/override/scsi" , test_override_scsi); +qtest_add_func ("hd-geo/override/scsi_2_controllers" , + test_override_scsi_2_controllers); + }qtest_add_func ("hd-geo/override/virtio_blk" , test_override_virtio_blk);qtest_add_func ("hd-geo/override/zero_chs" , test_override_zero_chs); qtest_add_func("hd-geo/override/scsi_hot_unplug",
Signature · 1 line
2.27.0
[PULL 2/8] tests/qtest/test-x86-cpuid-compat: Check for machines before using them
In reply to Thomas HuthThe user might have disabled the pc-i440fx machine type (or it's older versions, like done in downstream RHEL) in the QEMU binary, so let's better check whether the machine types are available before using them.
Message-Id: <[email protected]>
--- tests/qtest/test-x86-cpuid-compat.c | 85 ++++++++++++++++------------- 1 file changed, 48 insertions(+), 37 deletions(-)
tests/qtest/test-x86-cpuid-compat.c +48 -37
@@ -302,54 +302,65 @@ int main(int argc, char **argv)/* Check compatibility of old machine-types that didn't * auto-increase level/xlevel/xlevel2: */ - -add_cpuid_test ("x86/cpuid/auto-level/pc-2.7" , -"-machine pc-i440fx-2.7 -cpu 486,arat=on,avx512vbmi=on,xsaveopt=on" , -"level" ,1 ); -add_cpuid_test ("x86/cpuid/auto-xlevel/pc-2.7" , -"-machine pc-i440fx-2.7 -cpu 486,3dnow=on,sse4a=on,invtsc=on,npt=on,svm=on" , -"xlevel" ,0 ); -add_cpuid_test ("x86/cpuid/auto-xlevel2/pc-2.7" , -"-machine pc-i440fx-2.7 -cpu 486,xstore=on" , -"xlevel2" ,0 ); +if (qtest_has_machine ("pc-i440fx-2.7" )) { +add_cpuid_test ("x86/cpuid/auto-level/pc-2.7" , +"-machine pc-i440fx-2.7 -cpu 486,arat=on,avx512vbmi=on,xsaveopt=on" , +"level" ,1 ); +add_cpuid_test ("x86/cpuid/auto-xlevel/pc-2.7" , +"-machine pc-i440fx-2.7 -cpu 486,3dnow=on,sse4a=on,invtsc=on,npt=on,svm=on" , +"xlevel" ,0 ); +add_cpuid_test ("x86/cpuid/auto-xlevel2/pc-2.7" , +"-machine pc-i440fx-2.7 -cpu 486,xstore=on" , +"xlevel2" ,0 ); + }/* * QEMU 1.4.0 had auto-level enabled for CPUID[7], already, * and the compat code that sets default level shouldn't * disable the auto-level=7 code: */ -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-1.4/off" , -"-machine pc-i440fx-1.4 -cpu Nehalem" , -"level" ,2 ); -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-1.5/on" , -"-machine pc-i440fx-1.4 -cpu Nehalem,smap=on" , -"level" ,7 ); -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.3/off" , -"-machine pc-i440fx-2.3 -cpu Penryn" , -"level" ,4 ); -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.3/on" , -"-machine pc-i440fx-2.3 -cpu Penryn,erms=on" , -"level" ,7 ); -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.9/off" , -"-machine pc-i440fx-2.9 -cpu Conroe" , -"level" ,10 ); -add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.9/on" , -"-machine pc-i440fx-2.9 -cpu Conroe,erms=on" , -"level" ,10 ); +if (qtest_has_machine ("pc-i440fx-1.4" )) { +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-1.4/off" , +"-machine pc-i440fx-1.4 -cpu Nehalem" , +"level" ,2 ); +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-1.5/on" , +"-machine pc-i440fx-1.4 -cpu Nehalem,smap=on" , +"level" ,7 ); + } +if (qtest_has_machine ("pc-i440fx-2.3" )) { +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.3/off" , +"-machine pc-i440fx-2.3 -cpu Penryn" , +"level" ,4 ); +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.3/on" , +"-machine pc-i440fx-2.3 -cpu Penryn,erms=on" , +"level" ,7 ); + } +if (qtest_has_machine ("pc-i440fx-2.9" )) { +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.9/off" , +"-machine pc-i440fx-2.9 -cpu Conroe" , +"level" ,10 ); +add_cpuid_test ("x86/cpuid/auto-level7/pc-i440fx-2.9/on" , +"-machine pc-i440fx-2.9 -cpu Conroe,erms=on" , +"level" ,10 ); + }/* * xlevel doesn't have any feature that triggers auto-level * code on old machine-types. Just check that the compat code * is working correctly: */ -add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.3" , -"-machine pc-i440fx-2.3 -cpu SandyBridge" , -"xlevel" ,0x8000000a ); -add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.4/npt-off" , -"-machine pc-i440fx-2.4 -cpu SandyBridge," , -"xlevel" ,0x80000008 ); -add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.4/npt-on" , -"-machine pc-i440fx-2.4 -cpu SandyBridge,svm=on,npt=on" , -"xlevel" ,0x80000008 ); +if (qtest_has_machine ("pc-i440fx-2.3" )) { +add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.3" , +"-machine pc-i440fx-2.3 -cpu SandyBridge" , +"xlevel" ,0x8000000a ); + } +if (qtest_has_machine ("pc-i440fx-2.4" )) { +add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.4/npt-off" , +"-machine pc-i440fx-2.4 -cpu SandyBridge," , +"xlevel" ,0x80000008 ); +add_cpuid_test ("x86/cpuid/xlevel-compat/pc-i440fx-2.4/npt-on" , +"-machine pc-i440fx-2.4 -cpu SandyBridge,svm=on,npt=on" , +"xlevel" ,0x80000008 ); + }/* Test feature parsing */ add_feature_test("x86/cpuid/features/plus",
Signature · 1 line
2.27.0
[PULL 5/8] qemu-options: Remove the deprecated -no-quit option
In reply to Thomas HuthThis option was just a wrapper around the -display ...,window-close=off parameter, and the name "no-quit" is rather confusing compared to "window-close" (since there are still other means to quit the emulator), so let's remove this now.
Message-Id: <[email protected]>
--- docs/about/deprecated.rst | 6 ------ docs/about/removed-features.rst | 7 +++++++ qemu-options.hx | 8 -------- softmmu/vl.c | 8 +------- 4 files changed, 8 insertions(+), 21 deletions(-)
docs/about/deprecated.rst +0 -6
@@ -134,12 +134,6 @@ specified. Use ``-display sdl,window-close=...`` instead (i.e. with a minus instead of an underscore between "window" and "close"). -``-no-quit`` (since 6.1) -'''''''''''''''''''''''' - -The ``-no-quit`` is a synonym for ``-display ...,window-close=off`` which -should be used instead. - ``-alt-grab`` and ``-display sdl,alt_grab=on`` (since 6.2) ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
docs/about/removed-features.rst +7 -0
@@ -330,6 +330,13 @@ RISC-V firmware not booted by default (removed in 5.1) QEMU 5.1 changes the default behaviour from ``-bios none`` to ``-bios default`` for the RISC-V ``virt`` machine and ``sifive_u`` machine. +``-no-quit`` (removed in 7.0) +''''''''''''''''''''''''''''' + +The ``-no-quit`` was a synonym for ``-display ...,window-close=off`` which +should be used instead. + + QEMU Machine Protocol (QMP) commands ------------------------------------
qemu-options.hx +0 -8
@@ -2065,14 +2065,6 @@ SRST ``-display sdl,grab-mod=rctrl`` instead. ERST -DEF("no-quit", 0, QEMU_OPTION_no_quit, - "-no-quit disable SDL/GTK window close capability (deprecated)\n", QEMU_ARCH_ALL) -SRST -``-no-quit`` - Disable window close capability (SDL and GTK only). This option is - deprecated, please use ``-display ...,window-close=off`` instead. -ERST - DEF("sdl", 0, QEMU_OPTION_sdl, "-sdl shorthand for -display sdl\n", QEMU_ARCH_ALL) SRST
softmmu/vl.c +1 -7
@@ -1941,7 +1941,7 @@ static void qemu_create_early_backends(void) "for SDL, ignoring option"); }if (dpy.has_window_close && !use_gtk && !use_sdl) { -error_report ("-no-quit is only valid for GTK and SDL, " +error_report ("window-close is only valid for GTK and SDL, " "ignoring option" ); }
@@ -3301,12 +3301,6 @@ void qemu_init(int argc, char **argv, char **envp)warn_report ("-ctrl-grab is deprecated, please use " "-display sdl,grab-mod=rctrl instead." );break ; -case QEMU_OPTION_no_quit: - dpy.has_window_close = true; - dpy.window_close = false; -warn_report ("-no-quit is deprecated, please use " -"-display ...,window-close=off instead." ); -break ;case QEMU_OPTION_sdl:warn_report ("-sdl is deprecated, use -display sdl instead." );#ifdef CONFIG_SDL
Signature · 1 line
2.27.0
[PULL 4/8] tests/unit/test-util-sockets: Use g_file_open_tmp() to create temp file
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
Similarly to commit e63ed64c6d1 ("tests/qtest/virtio-net-failover:
Use g_file_open_tmp() to create temporary file"), avoid calling g_test_rand_int() before g_test_init(): use g_file_open_tmp().
Message-Id: <[email protected]>
--- tests/unit/test-util-sockets.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
tests/unit/test-util-sockets.c +4 -2
@@ -305,9 +305,11 @@ static void test_socket_unix_abstract(void) };int i; + i =g_file_open_tmp ("unix-XXXXXX" , &addr.u.q_unix.path,NULL ); +g_assert_true (i >=0 ); +close (i); + addr.type =SOCKET_ADDRESS_TYPE_UNIX ; - addr.u.q_unix.path =g_strdup_printf ("unix-%d-%u" , -getpid (),g_random_int ()); addr.u.q_unix.has_abstract = true; addr.u.q_unix.abstract = true; addr.u.q_unix.has_tight = false;
Signature · 1 line
2.27.0
[PULL 7/8] gitlab-ci: Enable docs in the centos job
In reply to Thomas HuthWe just ran into a problem that the docs don't build on RHEL8 / CentOS 8 anymore. Seems like these distros are using one of the oldest Sphinx versions that we still have to support. Thus enable the docs build in the CI on CentOS so that such bugs don't slip in so easily again.
Message-Id: <[email protected]>
--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/buildtest.yml +1 -1
@@ -164,7 +164,7 @@ build-system-centos: variables: IMAGE: centos8 CONFIGURE_ARGS: --disable-nettle --enable-gcrypt --enable-fdt=system - --enable-modules --enable-trace-backends=dtrace + --enable-modules --enable-trace-backends=dtrace --enable-docs TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu MAKE_CHECK_ARGS: check-build
Signature · 1 line
2.27.0
[PULL 6/8] docs/sphinx: fix compatibility with sphinx < 1.8
In reply to Thomas HuthFrom: Marc-André Lureau <[email protected]>
SphinxDirective was added with sphinx 1.8 (2018-09-13).
Message-Id: <[email protected]>
--- docs/sphinx/fakedbusdoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
docs/sphinx/fakedbusdoc.py +2 -2
@@ -7,12 +7,12 @@ # Author: Marc-André Lureau <[email protected]> """dbus-doc is a Sphinx extension that provides documentation from D-Bus XML.""" +from docutils.parsers.rst import Directive from sphinx.application import Sphinx -from sphinx.util.docutils import SphinxDirective from typing import Any, Dict -class FakeDBusDocDirective(SphinxDirective): +class FakeDBusDocDirective(Directive): has_content = True required_arguments = 1
Signature · 1 line
2.27.0
[PULL 8/8] docs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name
In reply to Thomas HuthIn downstream, we want to use a different name for the QEMU binary, and some people might also use the docs for non-x86 binaries, that's why we already created the |qemu_system| placeholder in the past. Use it now in the stap trace doc, too.
Message-Id: <[email protected]>
--- docs/tools/qemu-trace-stap.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
docs/tools/qemu-trace-stap.rst +12 -12
@@ -46,19 +46,19 @@ The following commands are valid: any of the listed names. If no *PATTERN* is given, the all possible probes will be listed. - For example, to list all probes available in the ``qemu-system-x86_64`` + For example, to list all probes available in the |qemu_system| binary: - :: + .. parsed-literal:: - $ qemu-trace-stap list qemu-system-x86_64 + $ qemu-trace-stap list |qemu_system| To filter the list to only cover probes related to QEMU's cryptographic subsystem, in a binary outside ``$PATH`` - :: + .. parsed-literal:: - $ qemu-trace-stap list /opt/qemu/4.0.0/bin/qemu-system-x86_64 'qcrypto*' + $ qemu-trace-stap list /opt/qemu/|version|/bin/|qemu_system| 'qcrypto*' .. option:: run OPTIONS BINARY PATTERN...
@@ -90,26 +90,26 @@ The following commands are valid: Restrict the tracing session so that it only triggers for the process identified by *PID*. - For example, to monitor all processes executing ``qemu-system-x86_64`` + For example, to monitor all processes executing |qemu_system| as found on ``$PATH``, displaying all I/O related probes: - :: + .. parsed-literal:: - $ qemu-trace-stap run qemu-system-x86_64 'qio*' + $ qemu-trace-stap run |qemu_system| 'qio*' To monitor only the QEMU process with PID 1732 - :: + .. parsed-literal:: - $ qemu-trace-stap run --pid=1732 qemu-system-x86_64 'qio*' + $ qemu-trace-stap run --pid=1732 |qemu_system| 'qio*' To monitor QEMU processes running an alternative binary outside of ``$PATH``, displaying verbose information about setup of the tracing environment: - :: + .. parsed-literal:: - $ qemu-trace-stap -v run /opt/qemu/4.0.0/qemu-system-x86_64 'qio*' + $ qemu-trace-stap -v run /opt/qemu/|version|/bin/|qemu_system| 'qio*' See also --------
Signature · 1 line
2.27.0
Richard Henderson
AppliedQuoted 49 lines · Thomas Huth
Hi!
The following changes since commit
fb084237a3b78b20fd9d888dffd673b6656ea3be:common-user: Really fix i386 calls to safe_syscall_set_errno_tail (2022-01-04 21:14:23 -0800)are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2022-01-05for you to fetch changes up to
057dc9a635fe37118a98b32e8bd9d8ed47b1a102:docs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name (2022-01-05 11:10:13 +0100)----------------------------------------------------------------
* Add compat machines for 7.0
* Some minor qtest and unit test improvements
* Remove -no-quit option
* Fixes for the docs----------------------------------------------------------------
Cornelia Huck (1):
hw: Add compat machines for 7.0Marc-André Lureau (1):
docs/sphinx: fix compatibility with sphinx < 1.8Philippe Mathieu-Daudé (1):
tests/unit/test-util-sockets: Useg_file_open_tmp()to create temp fileThomas Huth (5):
tests/qtest/test-x86-cpuid-compat: Check for machines before using them tests/qtest/hd-geo-test: Check for the lsi53c895a controller before using it
qemu-options: Remove the deprecated -no-quit option
gitlab-ci: Enable docs in the centos jobdocs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name.gitlab-ci.d/buildtest.yml | 2 +- docs/about/deprecated.rst | 6 --- docs/about/removed-features.rst | 7 +++ docs/sphinx/fakedbusdoc.py | 4 +- docs/tools/qemu-trace-stap.rst | 24 +++++------ hw/arm/virt.c | 9 +++- hw/core/machine.c | 3 ++ hw/i386/pc.c | 3 ++ hw/i386/pc_piix.c | 14 +++++- hw/i386/pc_q35.c | 13 +++++- hw/ppc/spapr.c | 15 ++++++- hw/s390x/s390-virtio-ccw.c | 14 +++++-
Quoted 8 lines
include/hw/boards.h | 3 ++ include/hw/i386/pc.h | 3 ++ qemu-options.hx | 8 ---- softmmu/vl.c | 8 +--- tests/qtest/hd-geo-test.c | 8 ++-- tests/qtest/test-x86-cpuid-compat.c | 85 +++++++++++++++++++++---------------- tests/unit/test-util-sockets.c | 6 ++- 19 files changed, 151 insertions(+), 84 deletions(-)
Applied, thanks.
r~