From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5LBY-0000RC-RB for qemu-devel@nongnu.org; Wed, 07 Mar 2012 13:02:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5LBS-0003qd-LG for qemu-devel@nongnu.org; Wed, 07 Mar 2012 13:02:00 -0500 Received: from mail-yx0-f173.google.com ([209.85.213.173]:49544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5LBS-0003qU-Ej for qemu-devel@nongnu.org; Wed, 07 Mar 2012 13:01:54 -0500 Received: by yenr5 with SMTP id r5so3623726yen.4 for ; Wed, 07 Mar 2012 10:01:52 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 7 Mar 2012 19:01:38 +0100 Message-Id: <1331143301-28408-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] decouple VIRTIO_BLK_F_SCSI from SG_IO support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, owasserm@redhat.com, mst@redhat.com VIRTIO_BLK_F_SCSI is supposed to mean whether the host can *parse* SCSI requests, not *execute* them. So it should always be enabled, and the scsi=on/off property tied to a separate configuration variable that is not guest visible. With this change, Linux has problems understanding failed requests, so patch 1 works around the Linux bugs. Important: because we need to do this to fix a migration compatibility problem when QEMU might be invoked with an old machine type, we must do this unconditionally. This more or less assumes that no one ever invoked QEMU with scsi=off, as it breaks migration from new QEMU, scsi=off to old QEMU, also scsi=off. However new->old is not supported upstream. If any downstream cares about new->old migration, they can apply v1 of the patches instead of this. Paolo Bonzini (3): virtio-blk: report non-zero status when failing SG_IO requests virtio-blk: define VirtIOBlkConf virtio-blk: always enable VIRTIO_BLK_F_SCSI hw/s390-virtio-bus.c | 10 ++++-- hw/s390-virtio-bus.h | 4 +- hw/virtio-blk.c | 77 ++++++++++++++++++++++++------------------------- hw/virtio-blk.h | 14 +++++---- hw/virtio-pci.c | 11 ++++--- hw/virtio-pci.h | 4 +- hw/virtio.h | 4 +- 7 files changed, 64 insertions(+), 60 deletions(-) -- 1.7.7.6