[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.4 0/3] scsi: fixes for failed requests
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH for-2.4 0/3] scsi: fixes for failed requests |
Date: |
Thu, 30 Jul 2015 15:19:11 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 30/07/2015 15:16, Stefan Hajnoczi wrote:
> When requests fail the error policy (-drive rerror=,werror=) determines what
> happens. The 'stop' policy pauses the guest and waits for the administrator
> to
> resolve the storage problem. It is possible to live migrate during this time
> and the failed requests can be restarted on the destination host.
>
> Two bugs:
> 1. Segfault due to missing sgs mapping when loading migrated failed requests.
> 2. Incorrect error action due to broken is_read logic.
>
> I also noticed that the unaligned WRITE SAME test case in
> tests/virtio-scsi-test.c is broken. I've included a fix for that too.
>
> Stefan Hajnoczi (3):
> virtio-scsi: use virtqueue_map_sg() when loading requests
> scsi-disk: fix cmd.mode field typo
> tests: virtio-scsi: clear unit attention after reset
>
> hw/scsi/scsi-disk.c | 2 +-
> hw/scsi/virtio-scsi.c | 5 +++
> tests/virtio-scsi-test.c | 90
> +++++++++++++++++++++++++++++-------------------
> 3 files changed, 60 insertions(+), 37 deletions(-)
>
All good, thanks! I'll send a pull request asap.
Paolo