[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 00/17] Fix scsi devices plug/unplug races w.r.t virtio-scsi io
From: |
Paolo Bonzini |
Subject: |
[PATCH v8 00/17] Fix scsi devices plug/unplug races w.r.t virtio-scsi iothread |
Date: |
Wed, 7 Oct 2020 07:56:43 -0400 |
Hopefully the final version of the patches, fixing the remaining
testsuite issues. Kevin or Max, please take a look at patches 6 and 7
as they affect qemu-iotests.
Paolo
Maxim Levitsky (11):
qtest: rename qtest_qmp_receive to qtest_qmp_receive_dict
qtest: Reintroduce qtest_qmp_receive
qtest: remove qtest_qmp_receive_success
qtest: switch users back to qtest_qmp_receive
scsi/scsi_bus: switch search direction in scsi_device_find
device_core: use drain_call_rcu in in qmp_device_add
device-core: use RCU for list of children of a bus
device-core: use atomic_set on .realized property
scsi/scsi_bus: Add scsi_device_get
virtio-scsi: use scsi_device_get
scsi/scsi_bus: fix races in REPORT LUNS
Paolo Bonzini (6):
device-plug-test: use qtest_qmp to send the device_del command
qtest: check that drives are really appearing and disappearing
qemu-iotests, qtest: rewrite test 067 as a qtest
qdev: add "check if address free" callback for buses
scsi: switch to bus->check_address
scsi/scsi-bus: scsi_device_find: don't return unrealized devices
.gitlab-ci.yml | 2 +-
hw/core/bus.c | 28 ++-
hw/core/qdev.c | 73 ++++--
hw/net/virtio-net.c | 2 +-
hw/scsi/scsi-bus.c | 262 ++++++++++++--------
hw/scsi/virtio-scsi.c | 27 ++-
hw/sd/core.c | 3 +-
include/hw/qdev-core.h | 24 +-
include/hw/scsi/scsi.h | 1 +
softmmu/qdev-monitor.c | 12 +
tests/qemu-iotests/067 | 157 ------------
tests/qemu-iotests/067.out | 414 --------------------------------
tests/qemu-iotests/group | 1 -
tests/qtest/device-plug-test.c | 32 +--
tests/qtest/drive_del-test.c | 244 ++++++++++++++++---
tests/qtest/libqos/libqtest.h | 34 +--
tests/qtest/libqtest.c | 110 +++++----
tests/qtest/meson.build | 4 +-
tests/qtest/migration-helpers.c | 25 +-
tests/qtest/pvpanic-test.c | 4 +-
tests/qtest/qmp-test.c | 18 +-
tests/qtest/tpm-util.c | 8 +-
22 files changed, 637 insertions(+), 848 deletions(-)
delete mode 100755 tests/qemu-iotests/067
delete mode 100644 tests/qemu-iotests/067.out
--
2.26.2
- [PATCH v8 00/17] Fix scsi devices plug/unplug races w.r.t virtio-scsi iothread,
Paolo Bonzini <=
- [PATCH v8 04/17] device-plug-test: use qtest_qmp to send the device_del command, Paolo Bonzini, 2020/10/07
- [PATCH v8 02/17] qtest: Reintroduce qtest_qmp_receive, Paolo Bonzini, 2020/10/07
- [PATCH v8 06/17] qtest: check that drives are really appearing and disappearing, Paolo Bonzini, 2020/10/07
- [PATCH v8 01/17] qtest: rename qtest_qmp_receive to qtest_qmp_receive_dict, Paolo Bonzini, 2020/10/07
- [PATCH v8 03/17] qtest: remove qtest_qmp_receive_success, Paolo Bonzini, 2020/10/07
- [PATCH v8 05/17] qtest: switch users back to qtest_qmp_receive, Paolo Bonzini, 2020/10/07
- [PATCH v8 07/17] qemu-iotests, qtest: rewrite test 067 as a qtest, Paolo Bonzini, 2020/10/07