[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] ef0f4b: Use QEMU_SANITIZE_THREAD
From: |
Richard Henderson |
Subject: |
[Qemu-commits] [qemu/qemu] ef0f4b: Use QEMU_SANITIZE_THREAD |
Date: |
Tue, 03 May 2022 09:14:47 -0700 |
Branch: refs/heads/staging
Home: https://github.com/qemu/qemu
Commit: ef0f4bda2e369418cdbe0c02584ae75015fb97c1
https://github.com/qemu/qemu/commit/ef0f4bda2e369418cdbe0c02584ae75015fb97c1
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M include/qemu/atomic.h
A subprojects/libvhost-user/include/compiler.h
Log Message:
-----------
Use QEMU_SANITIZE_THREAD
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 638466f777dc385dbd9b581ea31c6defd5f75efe
https://github.com/qemu/qemu/commit/638466f777dc385dbd9b581ea31c6defd5f75efe
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M tests/qtest/fdc-test.c
M util/coroutine-ucontext.c
Log Message:
-----------
Use QEMU_SANITIZE_ADDRESS
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Commit: 907b5105f1b9e1af1abbdbb4f2039c7ab105c001
https://github.com/qemu/qemu/commit/907b5105f1b9e1af1abbdbb4f2039c7ab105c001
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M docs/devel/qtest.rst
M scripts/oss-fuzz/output_reproducer.py
M tests/qtest/ac97-test.c
M tests/qtest/acpi-utils.h
M tests/qtest/ahci-test.c
M tests/qtest/am53c974-test.c
M tests/qtest/arm-cpu-features.c
M tests/qtest/aspeed_hace-test.c
M tests/qtest/boot-order-test.c
M tests/qtest/boot-sector.c
M tests/qtest/boot-sector.h
M tests/qtest/boot-serial-test.c
M tests/qtest/cdrom-test.c
M tests/qtest/dbus-display-test.c
M tests/qtest/dbus-vmstate-test.c
M tests/qtest/device-introspect-test.c
M tests/qtest/device-plug-test.c
M tests/qtest/drive_del-test.c
M tests/qtest/ds1338-test.c
M tests/qtest/e1000-test.c
M tests/qtest/eepro100-test.c
M tests/qtest/endianness-test.c
M tests/qtest/erst-test.c
M tests/qtest/es1370-test.c
M tests/qtest/fuzz-e1000e-test.c
M tests/qtest/fuzz-lsi53c895a-test.c
M tests/qtest/fuzz-megasas-test.c
M tests/qtest/fuzz-sb16-test.c
M tests/qtest/fuzz-sdcard-test.c
M tests/qtest/fuzz-virtio-scsi-test.c
M tests/qtest/fuzz-xlnx-dp-test.c
M tests/qtest/fuzz/fuzz.c
M tests/qtest/fuzz/fuzz.h
M tests/qtest/fuzz/generic_fuzz.c
M tests/qtest/fuzz/i440fx_fuzz.c
M tests/qtest/fuzz/qos_fuzz.c
M tests/qtest/fuzz/virtio_blk_fuzz.c
M tests/qtest/fuzz/virtio_net_fuzz.c
M tests/qtest/fuzz/virtio_scsi_fuzz.c
M tests/qtest/fw_cfg-test.c
M tests/qtest/hd-geo-test.c
M tests/qtest/hexloader-test.c
M tests/qtest/ide-test.c
M tests/qtest/ipoctal232-test.c
M tests/qtest/ivshmem-test.c
M tests/qtest/libqos/aarch64-xlnx-zcu102-machine.c
M tests/qtest/libqos/ahci.c
M tests/qtest/libqos/arm-imx25-pdk-machine.c
M tests/qtest/libqos/arm-n800-machine.c
M tests/qtest/libqos/arm-raspi2-machine.c
M tests/qtest/libqos/arm-sabrelite-machine.c
M tests/qtest/libqos/arm-smdkc210-machine.c
M tests/qtest/libqos/arm-virt-machine.c
M tests/qtest/libqos/arm-xilinx-zynq-a9-machine.c
M tests/qtest/libqos/e1000e.c
M tests/qtest/libqos/fw_cfg.c
M tests/qtest/libqos/fw_cfg.h
M tests/qtest/libqos/i2c-imx.c
M tests/qtest/libqos/i2c-omap.c
M tests/qtest/libqos/i2c.c
M tests/qtest/libqos/i2c.h
M tests/qtest/libqos/libqos.c
M tests/qtest/libqos/libqos.h
R tests/qtest/libqos/libqtest.h
M tests/qtest/libqos/malloc.h
M tests/qtest/libqos/pci-pc.c
M tests/qtest/libqos/pci-spapr.c
M tests/qtest/libqos/pci.h
M tests/qtest/libqos/ppc64_pseries-machine.c
M tests/qtest/libqos/qgraph.c
M tests/qtest/libqos/qos_external.c
M tests/qtest/libqos/rtas.c
M tests/qtest/libqos/sdhci-cmd.c
M tests/qtest/libqos/sdhci-cmd.h
M tests/qtest/libqos/sdhci.c
M tests/qtest/libqos/tpci200.c
M tests/qtest/libqos/usb.c
M tests/qtest/libqos/vhost-user-blk.c
M tests/qtest/libqos/virtio-9p.c
M tests/qtest/libqos/virtio-balloon.c
M tests/qtest/libqos/virtio-blk.c
M tests/qtest/libqos/virtio-iommu.c
M tests/qtest/libqos/virtio-mmio.c
M tests/qtest/libqos/virtio-net.c
M tests/qtest/libqos/virtio-pci.c
M tests/qtest/libqos/virtio-rng.c
M tests/qtest/libqos/virtio-scsi.c
M tests/qtest/libqos/virtio-serial.c
M tests/qtest/libqos/virtio.c
M tests/qtest/libqos/x86_64_pc-machine.c
M tests/qtest/libqtest-single.h
M tests/qtest/libqtest.c
A tests/qtest/libqtest.h
M tests/qtest/lpc-ich9-test.c
M tests/qtest/m48t59-test.c
M tests/qtest/machine-none-test.c
M tests/qtest/megasas-test.c
M tests/qtest/microbit-test.c
M tests/qtest/migration-helpers.h
M tests/qtest/migration-test.c
M tests/qtest/modules-test.c
M tests/qtest/ne2000-test.c
M tests/qtest/npcm7xx_adc-test.c
M tests/qtest/npcm7xx_pwm-test.c
M tests/qtest/npcm7xx_sdhci-test.c
M tests/qtest/npcm7xx_smbus-test.c
M tests/qtest/npcm7xx_watchdog_timer-test.c
M tests/qtest/numa-test.c
M tests/qtest/nvme-test.c
M tests/qtest/pca9552-test.c
M tests/qtest/pci-test.c
M tests/qtest/pcnet-test.c
M tests/qtest/pflash-cfi02-test.c
M tests/qtest/pnv-xscom-test.c
M tests/qtest/prom-env-test.c
M tests/qtest/pvpanic-pci-test.c
M tests/qtest/pvpanic-test.c
M tests/qtest/pxe-test.c
M tests/qtest/q35-test.c
M tests/qtest/qmp-cmd-test.c
M tests/qtest/qmp-test.c
M tests/qtest/qom-test.c
M tests/qtest/rtas-test.c
M tests/qtest/sdhci-test.c
M tests/qtest/spapr-phb-test.c
M tests/qtest/tco-test.c
M tests/qtest/test-filter-mirror.c
M tests/qtest/test-filter-redirector.c
M tests/qtest/test-hmp.c
M tests/qtest/tpm-crb-swtpm-test.c
M tests/qtest/tpm-emu.h
M tests/qtest/tpm-tis-device-swtpm-test.c
M tests/qtest/tpm-tis-swtpm-test.c
M tests/qtest/tpm-util.c
M tests/qtest/tulip-test.c
M tests/qtest/virtio-net-failover.c
M tests/qtest/virtio-rng-test.c
M tests/qtest/virtio-test.c
M tests/qtest/vmgenid-test.c
M tests/qtest/vmxnet3-test.c
M tests/qtest/wdt_ib700-test.c
M tests/qtest/xlnx-can-test.c
M tests/unit/test-qga.c
Log Message:
-----------
tests: move libqtest.h back under qtest/
Since commit a2ce7dbd917 ("meson: convert tests/qtest to meson"),
libqtest.h is under libqos/ directory, while libqtest.c is still in
qtest/. Move back to its original location to avoid mixing with libqos/.
Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Commit: c6d3bcb4b91e9ebf08f3afb8759760a9dbb2b744
https://github.com/qemu/qemu/commit/c6d3bcb4b91e9ebf08f3afb8759760a9dbb2b744
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
A tests/qtest/libqmp.c
A tests/qtest/libqmp.h
M tests/qtest/libqos/meson.build
M tests/qtest/libqtest.c
M tests/qtest/libqtest.h
M tests/unit/meson.build
Log Message:
-----------
libqtest: split QMP part in libqmp
This will help moving QAPI/QMP in a common subproject.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Commit: 4d14cb0cd7868d11091acf5c930982cae4e3489c
https://github.com/qemu/qemu/commit/4d14cb0cd7868d11091acf5c930982cae4e3489c
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M hw/misc/ivshmem.c
M util/event_notifier-posix.c
M util/main-loop.c
Log Message:
-----------
Use g_unix_set_fd_nonblocking()
API available since glib 2.30. It also preserves errno.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ad24b679d215c2f8eaab6125a68e864c2a5d7dde
https://github.com/qemu/qemu/commit/ad24b679d215c2f8eaab6125a68e864c2a5d7dde
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M block/file-posix.c
M include/sysemu/os-posix.h
M util/oslib-posix.c
Log Message:
-----------
block: move fcntl_setfl()
It is only used by block/file-posix.c, move it there.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a7241974ceca3a783ab010f3fd1926fa42346a34
https://github.com/qemu/qemu/commit/a7241974ceca3a783ab010f3fd1926fa42346a34
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M include/qemu/osdep.h
M qemu-nbd.c
M util/event_notifier-posix.c
M util/oslib-posix.c
Log Message:
-----------
Replace qemu_pipe() with g_unix_open_pipe()
GLib g_unix_open_pipe() is essentially like qemu_pipe(), available since
2.30.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 81badab381db30930f73f7fd16348f4df2ba7252
https://github.com/qemu/qemu/commit/81badab381db30930f73f7fd16348f4df2ba7252
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M util/compatfd.c
Log Message:
-----------
util: replace pipe()+cloexec with g_unix_open_pipe()
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ed78331ddafeca55f45ce9ce8bec6c7660a6d621
https://github.com/qemu/qemu/commit/ed78331ddafeca55f45ce9ce8bec6c7660a6d621
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M qga/commands-posix.c
Log Message:
-----------
qga: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: 89810e10eda30501906421a23b4f1e6c330924ac
https://github.com/qemu/qemu/commit/89810e10eda30501906421a23b4f1e6c330924ac
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M tests/qtest/ivshmem-test.c
M tests/unit/test-io-channel-file.c
Log Message:
-----------
tests: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: 3338a41f24de3033ceb9ac047811826e64b360e6
https://github.com/qemu/qemu/commit/3338a41f24de3033ceb9ac047811826e64b360e6
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M os-posix.c
Log Message:
-----------
os-posix: replace pipe()+cloexec with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: bd2142c353c683a26a968dafca14be02c07d6f96
https://github.com/qemu/qemu/commit/bd2142c353c683a26a968dafca14be02c07d6f96
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M tools/virtiofsd/helper.c
Log Message:
-----------
virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: d640b59eb3c7925568c5b101f439b0c0e65ea313
https://github.com/qemu/qemu/commit/d640b59eb3c7925568c5b101f439b0c0e65ea313
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M io/channel-command.c
Log Message:
-----------
io: replace pipe() with g_unix_open_pipe(CLOEXEC)
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: 22e135fca3f2512f43d39efab49067660e365e1b
https://github.com/qemu/qemu/commit/22e135fca3f2512f43d39efab49067660e365e1b
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M net/tap-bsd.c
M net/tap-linux.c
M net/tap-solaris.c
M tests/qtest/fuzz/virtio_net_fuzz.c
M tests/unit/test-iov.c
M util/oslib-posix.c
Log Message:
-----------
Replace fcntl(O_NONBLOCK) with g_unix_set_fd_nonblocking()
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 05e50e8fe5fed707653e1e5e2f2871f253a70452
https://github.com/qemu/qemu/commit/05e50e8fe5fed707653e1e5e2f2871f253a70452
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M include/io/channel-command.h
M io/channel-command.c
Log Message:
-----------
io: make qio_channel_command_new_pid() static
The function isn't used outside of qio_channel_command_new_spawn(),
which is !win32-specific.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Commit: b84bb4dfe5d03b40c91260db8ee07d65809fc35f
https://github.com/qemu/qemu/commit/b84bb4dfe5d03b40c91260db8ee07d65809fc35f
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M chardev/char-fd.c
M chardev/char-pty.c
M chardev/char-serial.c
M chardev/char-stdio.c
Log Message:
-----------
chardev: replace qemu_set_nonblock()
Those calls are either for non-socket fd, or are POSIX-specific. Use the
dedicated GLib API. (qemu_set_nonblock() is for socket-like)
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: 17fc124529abfda185e69fa1220e5f404be22d25
https://github.com/qemu/qemu/commit/17fc124529abfda185e69fa1220e5f404be22d25
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M io/channel-command.c
M io/channel-file.c
Log Message:
-----------
io: replace qemu_set{_non}block()
Those calls are non-socket fd, or are POSIX-specific. Use the dedicated
GLib API. (qemu_set_nonblock() is for socket-like)
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: b0a8f9adfed871728154b0064a28e34b6670f9f2
https://github.com/qemu/qemu/commit/b0a8f9adfed871728154b0064a28e34b6670f9f2
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M qga/commands-posix.c
Log Message:
-----------
qga: replace qemu_set_nonblock()
The call is POSIX-specific. Use the dedicated GLib API.
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: 701544cfaf46f24d912ad1714eb24641c3c96837
https://github.com/qemu/qemu/commit/701544cfaf46f24d912ad1714eb24641c3c96837
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M hw/input/virtio-input-host.c
M hw/virtio/vhost-vsock.c
Log Message:
-----------
hw: replace qemu_set_nonblock()
Those calls are non-socket fd, or are POSIX-specific. Use the dedicated
GLib API. (qemu_set_nonblock() is for socket-like)
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: c7b1172026a03b914e3534eb2d1d6a4c9b211a58
https://github.com/qemu/qemu/commit/c7b1172026a03b914e3534eb2d1d6a4c9b211a58
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M ui/input-linux.c
Log Message:
-----------
ui: replace qemu_set_nonblock()
The call is POSIX-specific. Use the dedicated GLib API.
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: a8208626ba8955bad15744398f9befa3b120f5af
https://github.com/qemu/qemu/commit/a8208626ba8955bad15744398f9befa3b120f5af
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M net/tap.c
Log Message:
-----------
net: replace qemu_set_nonblock()
Those calls are POSIX-specific. Use the dedicated GLib
API. (qemu_set_nonblock() is for socket-like)
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Commit: b2670d1f9976260191ebccecc822fea7114fd448
https://github.com/qemu/qemu/commit/b2670d1f9976260191ebccecc822fea7114fd448
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M tests/qtest/vhost-user-test.c
Log Message:
-----------
tests: replace qemu_set_nonblock()
The call is POSIX-specific. Use the dedicated GLib API.
(this is a preliminary patch before renaming qemu_set_nonblock())
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Commit: ff5927baa7ffb9c97873a071f6a8d85a3584182b
https://github.com/qemu/qemu/commit/ff5927baa7ffb9c97873a071f6a8d85a3584182b
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M chardev/char-socket.c
M contrib/ivshmem-server/ivshmem-server.c
M hw/hyperv/syndbg.c
M hw/virtio/vhost-user.c
M include/qemu/sockets.h
M io/channel-socket.c
M net/l2tpv3.c
M net/socket.c
M qga/channel-posix.c
M tests/unit/socket-helpers.c
M tests/unit/test-crypto-tlssession.c
M util/oslib-posix.c
M util/oslib-win32.c
M util/vhost-user-server.c
Log Message:
-----------
util: rename qemu_*block() socket functions
The qemu_*block() functions are meant to be be used with sockets (the
win32 implementation expects SOCKET)
Over time, those functions where used with Win32 SOCKET or
file-descriptors interchangeably. But for portability, they must only be
used with socket-like file-descriptors. FDs can use
g_unix_set_fd_nonblocking() instead.
Rename the functions with "socket" in the name to prevent bad usages.
This is effectively reverting commit f9e8cacc5557e43 ("oslib-posix:
rename socket_set_nonblock() to qemu_set_nonblock()").
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Commit: 2e3408b3cc7de4e87a9adafc8c19bfce3abec947
https://github.com/qemu/qemu/commit/2e3408b3cc7de4e87a9adafc8c19bfce3abec947
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M block/file-posix.c
M chardev/char-fd.c
M chardev/char-pty.c
M chardev/char-serial.c
M chardev/char-socket.c
M chardev/char-stdio.c
M contrib/ivshmem-server/ivshmem-server.c
M docs/devel/qtest.rst
M hw/hyperv/syndbg.c
M hw/input/virtio-input-host.c
M hw/misc/ivshmem.c
M hw/virtio/vhost-user.c
M hw/virtio/vhost-vsock.c
M include/io/channel-command.h
M include/qemu/atomic.h
M include/qemu/osdep.h
M include/qemu/sockets.h
M include/sysemu/os-posix.h
M io/channel-command.c
M io/channel-file.c
M io/channel-socket.c
M net/l2tpv3.c
M net/socket.c
M net/tap-bsd.c
M net/tap-linux.c
M net/tap-solaris.c
M net/tap.c
M os-posix.c
M qemu-nbd.c
M qga/channel-posix.c
M qga/commands-posix.c
M scripts/oss-fuzz/output_reproducer.py
A subprojects/libvhost-user/include/compiler.h
M tests/qtest/ac97-test.c
M tests/qtest/acpi-utils.h
M tests/qtest/ahci-test.c
M tests/qtest/am53c974-test.c
M tests/qtest/arm-cpu-features.c
M tests/qtest/aspeed_hace-test.c
M tests/qtest/boot-order-test.c
M tests/qtest/boot-sector.c
M tests/qtest/boot-sector.h
M tests/qtest/boot-serial-test.c
M tests/qtest/cdrom-test.c
M tests/qtest/dbus-display-test.c
M tests/qtest/dbus-vmstate-test.c
M tests/qtest/device-introspect-test.c
M tests/qtest/device-plug-test.c
M tests/qtest/drive_del-test.c
M tests/qtest/ds1338-test.c
M tests/qtest/e1000-test.c
M tests/qtest/eepro100-test.c
M tests/qtest/endianness-test.c
M tests/qtest/erst-test.c
M tests/qtest/es1370-test.c
M tests/qtest/fdc-test.c
M tests/qtest/fuzz-e1000e-test.c
M tests/qtest/fuzz-lsi53c895a-test.c
M tests/qtest/fuzz-megasas-test.c
M tests/qtest/fuzz-sb16-test.c
M tests/qtest/fuzz-sdcard-test.c
M tests/qtest/fuzz-virtio-scsi-test.c
M tests/qtest/fuzz-xlnx-dp-test.c
M tests/qtest/fuzz/fuzz.c
M tests/qtest/fuzz/fuzz.h
M tests/qtest/fuzz/generic_fuzz.c
M tests/qtest/fuzz/i440fx_fuzz.c
M tests/qtest/fuzz/qos_fuzz.c
M tests/qtest/fuzz/virtio_blk_fuzz.c
M tests/qtest/fuzz/virtio_net_fuzz.c
M tests/qtest/fuzz/virtio_scsi_fuzz.c
M tests/qtest/fw_cfg-test.c
M tests/qtest/hd-geo-test.c
M tests/qtest/hexloader-test.c
M tests/qtest/ide-test.c
M tests/qtest/ipoctal232-test.c
M tests/qtest/ivshmem-test.c
A tests/qtest/libqmp.c
A tests/qtest/libqmp.h
M tests/qtest/libqos/aarch64-xlnx-zcu102-machine.c
M tests/qtest/libqos/ahci.c
M tests/qtest/libqos/arm-imx25-pdk-machine.c
M tests/qtest/libqos/arm-n800-machine.c
M tests/qtest/libqos/arm-raspi2-machine.c
M tests/qtest/libqos/arm-sabrelite-machine.c
M tests/qtest/libqos/arm-smdkc210-machine.c
M tests/qtest/libqos/arm-virt-machine.c
M tests/qtest/libqos/arm-xilinx-zynq-a9-machine.c
M tests/qtest/libqos/e1000e.c
M tests/qtest/libqos/fw_cfg.c
M tests/qtest/libqos/fw_cfg.h
M tests/qtest/libqos/i2c-imx.c
M tests/qtest/libqos/i2c-omap.c
M tests/qtest/libqos/i2c.c
M tests/qtest/libqos/i2c.h
M tests/qtest/libqos/libqos.c
M tests/qtest/libqos/libqos.h
R tests/qtest/libqos/libqtest.h
M tests/qtest/libqos/malloc.h
M tests/qtest/libqos/meson.build
M tests/qtest/libqos/pci-pc.c
M tests/qtest/libqos/pci-spapr.c
M tests/qtest/libqos/pci.h
M tests/qtest/libqos/ppc64_pseries-machine.c
M tests/qtest/libqos/qgraph.c
M tests/qtest/libqos/qos_external.c
M tests/qtest/libqos/rtas.c
M tests/qtest/libqos/sdhci-cmd.c
M tests/qtest/libqos/sdhci-cmd.h
M tests/qtest/libqos/sdhci.c
M tests/qtest/libqos/tpci200.c
M tests/qtest/libqos/usb.c
M tests/qtest/libqos/vhost-user-blk.c
M tests/qtest/libqos/virtio-9p.c
M tests/qtest/libqos/virtio-balloon.c
M tests/qtest/libqos/virtio-blk.c
M tests/qtest/libqos/virtio-iommu.c
M tests/qtest/libqos/virtio-mmio.c
M tests/qtest/libqos/virtio-net.c
M tests/qtest/libqos/virtio-pci.c
M tests/qtest/libqos/virtio-rng.c
M tests/qtest/libqos/virtio-scsi.c
M tests/qtest/libqos/virtio-serial.c
M tests/qtest/libqos/virtio.c
M tests/qtest/libqos/x86_64_pc-machine.c
M tests/qtest/libqtest-single.h
M tests/qtest/libqtest.c
A tests/qtest/libqtest.h
M tests/qtest/lpc-ich9-test.c
M tests/qtest/m48t59-test.c
M tests/qtest/machine-none-test.c
M tests/qtest/megasas-test.c
M tests/qtest/microbit-test.c
M tests/qtest/migration-helpers.h
M tests/qtest/migration-test.c
M tests/qtest/modules-test.c
M tests/qtest/ne2000-test.c
M tests/qtest/npcm7xx_adc-test.c
M tests/qtest/npcm7xx_pwm-test.c
M tests/qtest/npcm7xx_sdhci-test.c
M tests/qtest/npcm7xx_smbus-test.c
M tests/qtest/npcm7xx_watchdog_timer-test.c
M tests/qtest/numa-test.c
M tests/qtest/nvme-test.c
M tests/qtest/pca9552-test.c
M tests/qtest/pci-test.c
M tests/qtest/pcnet-test.c
M tests/qtest/pflash-cfi02-test.c
M tests/qtest/pnv-xscom-test.c
M tests/qtest/prom-env-test.c
M tests/qtest/pvpanic-pci-test.c
M tests/qtest/pvpanic-test.c
M tests/qtest/pxe-test.c
M tests/qtest/q35-test.c
M tests/qtest/qmp-cmd-test.c
M tests/qtest/qmp-test.c
M tests/qtest/qom-test.c
M tests/qtest/rtas-test.c
M tests/qtest/sdhci-test.c
M tests/qtest/spapr-phb-test.c
M tests/qtest/tco-test.c
M tests/qtest/test-filter-mirror.c
M tests/qtest/test-filter-redirector.c
M tests/qtest/test-hmp.c
M tests/qtest/tpm-crb-swtpm-test.c
M tests/qtest/tpm-emu.h
M tests/qtest/tpm-tis-device-swtpm-test.c
M tests/qtest/tpm-tis-swtpm-test.c
M tests/qtest/tpm-util.c
M tests/qtest/tulip-test.c
M tests/qtest/vhost-user-test.c
M tests/qtest/virtio-net-failover.c
M tests/qtest/virtio-rng-test.c
M tests/qtest/virtio-test.c
M tests/qtest/vmgenid-test.c
M tests/qtest/vmxnet3-test.c
M tests/qtest/wdt_ib700-test.c
M tests/qtest/xlnx-can-test.c
M tests/unit/meson.build
M tests/unit/socket-helpers.c
M tests/unit/test-crypto-tlssession.c
M tests/unit/test-io-channel-file.c
M tests/unit/test-iov.c
M tests/unit/test-qga.c
M tools/virtiofsd/helper.c
M ui/input-linux.c
M util/compatfd.c
M util/coroutine-ucontext.c
M util/event_notifier-posix.c
M util/main-loop.c
M util/oslib-posix.c
M util/oslib-win32.c
M util/vhost-user-server.c
Log Message:
-----------
Merge tag 'misc-pull-request' of gitlab.com:marcandre.lureau/qemu into staging
Misc cleanups
# -----BEGIN PGP SIGNATURE-----
#
# iQJQBAABCAA6FiEEh6m9kz+HxgbSdvYt2ujhCXWWnOUFAmJxKjQcHG1hcmNhbmRy
# ZS5sdXJlYXVAcmVkaGF0LmNvbQAKCRDa6OEJdZac5ZD5D/9f5CGbNsrl7kB1t6iS
# 1ABr5AeW0g9sidMCsQAe9xhWl6+R2SO/z0bBue+mv1ltG0RSZ1ZXS4FyJFBAhFfR
# fZ6J7bvdnawIKOxu5T9NY/UvthdRV0eC8CTo0q6GAJo9MHyIGvo1TOoM2Ld9QpfB
# 2uup+9fw3Clh0HSHwV9LSL7v2nucFef4A5P1CJ6d1KHnnej0hfug5o+Aiy+wDLA2
# 5RnTm44dqm9lzTgt/x4MqE6Us7WWQukjlLny8/gyurNTR+6fxLqjsHZG+6woQETu
# Gg6angsOoAFyciFZ564rjGv80qQuccMVMjtrKvBZz/cmwUUz+Lb4tU3tUPBqomGX
# wiofVtL4qcXs94OHWX654UX/iXgkRqC3r+aC0xT37cL4svC8N69BhilxI5+gIGxZ
# ZjaQhHx/0e+Ut3c+xrjYHbywQMd9L9AhRyYSMz5BNeLg9+yUiMR+hvGVR/SubLN1
# iiLS07CRgdOKdP6ts7CC7txAgDw4h3cPN5Hz+gqXMJTcnBKpXpnF1lL+Zd/J5++N
# 8qMVQH5O4REQRISsbKaOPW8PCiPESsUaHb/mWkre7iYLgkEdNMVQvRcnfx14ejbk
# /KKXolrG1huJXGQGnYvgJArHMBBL+ieIYiT6alKFNRNECLdioL46FuSOlirHVCGe
# StU22Vsl61M8ifDOPdolK55X5Q==
# =npwd
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 03 May 2022 06:12:20 AM PDT
# gpg: using RSA key 87A9BD933F87C606D276F62DDAE8E10975969CE5
# gpg: issuer "marcandre.lureau@redhat.com"
# gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>"
[full]
# gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com>"
[full]
* tag 'misc-pull-request' of gitlab.com:marcandre.lureau/qemu: (23 commits)
util: rename qemu_*block() socket functions
tests: replace qemu_set_nonblock()
net: replace qemu_set_nonblock()
ui: replace qemu_set_nonblock()
hw: replace qemu_set_nonblock()
qga: replace qemu_set_nonblock()
io: replace qemu_set{_non}block()
chardev: replace qemu_set_nonblock()
io: make qio_channel_command_new_pid() static
Replace fcntl(O_NONBLOCK) with g_unix_set_fd_nonblocking()
io: replace pipe() with g_unix_open_pipe(CLOEXEC)
virtiofsd: replace pipe() with g_unix_open_pipe(CLOEXEC)
os-posix: replace pipe()+cloexec with g_unix_open_pipe(CLOEXEC)
tests: replace pipe() with g_unix_open_pipe(CLOEXEC)
qga: replace pipe() with g_unix_open_pipe(CLOEXEC)
util: replace pipe()+cloexec with g_unix_open_pipe()
Replace qemu_pipe() with g_unix_open_pipe()
block: move fcntl_setfl()
Use g_unix_set_fd_nonblocking()
libqtest: split QMP part in libqmp
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Compare: https://github.com/qemu/qemu/compare/5f14cfe187e2...2e3408b3cc7d
- [Qemu-commits] [qemu/qemu] ef0f4b: Use QEMU_SANITIZE_THREAD,
Richard Henderson <=