[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/2] virtio-scsi: abort in-flight I/O when the d
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH 0/2] virtio-scsi: abort in-flight I/O when the device is reset |
Date: |
Thu, 10 Jan 2013 17:14:47 +0200 |
On Thu, Jan 10, 2013 at 03:49:06PM +0100, Paolo Bonzini wrote:
> This fixes the virtio-scsi problem by forcing a reset of the SCSI
> bus from virtio_reset. The reset will happen twice on machine
> initialization (and this is why I preferred the other approach,
> using qdev_reset_all in virtio code), but that's harmless.
Now I finally see what you worry about. It's the double reset.
Yes a bit ugly but harmless.
> Paolo Bonzini (2):
> qdev: add qbus_reset_all
> virtio-scsi: abort in-flight I/O when the device is reset
>
> hw/qdev-core.h | 12 ++++++++++++
> hw/qdev.c | 7 ++++++-
> hw/virtio-scsi.c | 4 ++++
> 3 files changed, 22 insertions(+), 1 deletion(-)
>
> --
> 1.8.1