qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 22956a: spapr-vscsi: fix CRQ status


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 22956a: spapr-vscsi: fix CRQ status
Date: Fri, 14 Mar 2014 12:00:03 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 22956a3755749b9cf6375ad024d58c1d277100bf
      
https://github.com/qemu/qemu/commit/22956a3755749b9cf6375ad024d58c1d277100bf
  Author: Alexey Kardashevskiy <address@hidden>
  Date:   2014-03-14 (Fri, 14 Mar 2014)

  Changed paths:
    M hw/scsi/spapr_vscsi.c

  Log Message:
  -----------
  spapr-vscsi: fix CRQ status

Normally VIOSRP_OK (0) means success and non-zero value means error
except VIOSRP_OK2 (0x99) which is another success code by weird accident.

This uses 0 as success code always as some guests do not cope with
the 0x99 value well. The existing linux driver checks for both VIOSRP_OK
and VIOSRP_OK2 since 2.6.32.

This returns non-zero code (VIOSRP_ADAPTER_FAIL == 0x10) on errors which
can only happen if DMA write failed.

Suggested-by: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 2e323f03bfa323636552b386c982412944ff86ae
      
https://github.com/qemu/qemu/commit/2e323f03bfa323636552b386c982412944ff86ae
  Author: Fam Zheng <address@hidden>
  Date:   2014-03-14 (Fri, 14 Mar 2014)

  Changed paths:
    M hw/scsi/scsi-bus.c
    M include/hw/scsi/scsi.h
    M include/migration/vmstate.h

  Log Message:
  -----------
  scsi: Fix migration of scsi sense data

c5f52875 changed the size of sense array in vmstate_scsi_device by
mistake. This patch restores the old size, and add a subsection for the
remaining part of the buffer size. So that migration is not broken.

Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: aa7a6a399f8253d3831465b1db8544032b49f57a
      
https://github.com/qemu/qemu/commit/aa7a6a399f8253d3831465b1db8544032b49f57a
  Author: Paolo Bonzini <address@hidden>
  Date:   2014-03-14 (Fri, 14 Mar 2014)

  Changed paths:
    M hw/scsi/virtio-scsi.c

  Log Message:
  -----------
  virtio-scsi: actually honor sense_size from configuration space

We were always truncating the sense size to 96 bytes.

Reviewed-by: Fam Zheng <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 03d51428e2da0188a0adea00cbd713cc1e967e7a
      
https://github.com/qemu/qemu/commit/03d51428e2da0188a0adea00cbd713cc1e967e7a
  Author: Peter Maydell <address@hidden>
  Date:   2014-03-14 (Fri, 14 Mar 2014)

  Changed paths:
    M hw/scsi/scsi-bus.c
    M hw/scsi/spapr_vscsi.c
    M hw/scsi/virtio-scsi.c
    M include/hw/scsi/scsi.h
    M include/migration/vmstate.h

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/bonzini/scsi-next' into staging

* remotes/bonzini/scsi-next:
  virtio-scsi: actually honor sense_size from configuration space
  scsi: Fix migration of scsi sense data
  spapr-vscsi: fix CRQ status

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/5d92c74f8a17...03d51428e2da

reply via email to

[Prev in Thread] Current Thread [Next in Thread]