From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobDy-0002m9-Ch for qemu-devel@nongnu.org; Tue, 10 Jul 2012 10:15:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SobDo-00020j-0V for qemu-devel@nongnu.org; Tue, 10 Jul 2012 10:15:33 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:54511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SobDn-0001y4-Qj for qemu-devel@nongnu.org; Tue, 10 Jul 2012 10:15:23 -0400 Received: by yhoo21 with SMTP id o21so14697yho.4 for ; Tue, 10 Jul 2012 07:15:22 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 10 Jul 2012 16:15:02 +0200 Message-Id: <1341929710-21574-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/9] scsi-disk: support toggling the write cache List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This series extracts some pending patches I had lying around that refactor scsi-disk to be more table-driven and enable support for emulated requests where data flows _to_ the SCSI device. This is then used to support MODE SELECT and in particular toggling the write cache. Paolo Paolo Bonzini (8): scsi-disk: make discard asynchronous scsi-disk: move all non-DMA commands to scsi_disk_emulate_command scsi-disk: split scsi-disk reqops scsi-disk: separate read_data/write_data implementation for emulate_reqops scsi-disk: support emulated TO_DEV requests scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR scsi-disk: parse MODE SELECT commands and parameters scsi-disk: support toggling the write cache hw/scsi-bus.c | 10 ++ hw/scsi-disk.c | 550 +++++++++++++++++++++++++++++++++++++++----------------- hw/scsi.h | 4 + 3 files changed, 402 insertions(+), 162 deletions(-) -- 1.7.10.4