[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() d
From: |
Philippe Mathieu-Daudé |
Subject: |
[qemu-s390x] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly |
Date: |
Tue, 28 May 2019 18:40:11 +0200 |
Since the BusState is accesible from the SCSIBus object,
it is pointless to use qbus_reset_all_fn.
Use qbus_reset_all() directly.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
v2: Use BUS() macro (Peter Maydell)
One step toward removing qbus_reset_all_fn()
---
hw/scsi/vmw_pvscsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 584b4be07e..c39e33fa35 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -440,7 +440,7 @@ static void
pvscsi_reset_adapter(PVSCSIState *s)
{
s->resetting++;
- qbus_reset_all_fn(&s->bus);
+ qbus_reset_all(BUS(&s->bus));
s->resetting--;
pvscsi_process_completion_queue(s);
assert(QTAILQ_EMPTY(&s->pending_queue));
@@ -848,7 +848,7 @@ pvscsi_on_cmd_reset_bus(PVSCSIState *s)
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_RESET_BUS");
s->resetting++;
- qbus_reset_all_fn(&s->bus);
+ qbus_reset_all(BUS(&s->bus));
s->resetting--;
return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;
}
--
2.20.1
- [qemu-s390x] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus, (continued)
- [qemu-s390x] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 08/10] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access DeviceState.qdev, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 05/10] hw/sd: Use the QOM BUS() macro to access BusState.qbus, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 07/10] hw/isa: Use the QOM DEVICE() macro to access DeviceState.qdev, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 03/10] hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus, Philippe Mathieu-Daudé, 2019/05/28
- [qemu-s390x] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly,
Philippe Mathieu-Daudé <=
- [qemu-s390x] [PATCH v2 09/10] hw/vfio/pci: Use the QOM DEVICE() macro to access DeviceState.qdev, Philippe Mathieu-Daudé, 2019/05/28