From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R62Do-00054g-AI for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:27:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R62Dn-0005Pk-Ar for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:26:56 -0400 Received: from mail-ww0-f53.google.com ([74.125.82.53]:40788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R62Dm-0005PR-St for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:26:55 -0400 Received: by wwg14 with SMTP id 14so804349wwg.10 for ; Tue, 20 Sep 2011 08:26:52 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 20 Sep 2011 17:26:34 +0200 Message-Id: <1316532406-25340-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 00/12] scsi-disk: Add DVD-ROM support and media change + atapi: nitpicking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This series brings scsi-disk and ide/atapi almost on feature parity. After this series, the only missing feature in scsi-disk is the READ CD command. The main addition is media change support, both via unit attention and via GET EVENT STATUS NOTIFICATION. I originally planned to work on this after migration, but since media change supports adds a couple of fields that have to be migrated, it is better to include this early. The actual packets are still sometimes different, mostly in irrelevant details, but apart from READ CD the implemented commands are the same. Unifying the two implementations is a much larger job, and would likely require significant work in the block layer too. It may come out nicely as a byproduct of more SCSI features (e.g. SCSI passthrough for iSCSI devices) but not soon. Paolo Bonzini (12): scsi: pass correct sense code for ENOMEDIUM atapi/scsi: unify definitions for MMC atapi: move GESN definitions to scsi-defs.h atapi: fill in AUDIO_CTL page correctly scsi: notify the device when unit attention is reported scsi-disk: report media changed via unit attention sense codes scsi-disk: add stubs for more MMC commands scsi-disk: store valid mode pages in a table atapi/scsi-disk: make mode page values coherent between the two scsi-disk: support DVD profile in GET CONFIGURATION scsi-disk: support READ DVD STRUCTURE scsi-disk: report media changed via GET EVENT STATUS NOTIFICATION hw/ide/atapi.c | 109 ++++++----------- hw/ide/core.c | 4 +- hw/ide/internal.h | 71 +----------- hw/ide/macio.c | 2 +- hw/scsi-bus.c | 39 +++++- hw/scsi-defs.h | 90 ++++++++++++++ hw/scsi-disk.c | 341 ++++++++++++++++++++++++++++++++++++++++++++++++----- hw/scsi.h | 4 + 8 files changed, 482 insertions(+), 178 deletions(-) -- 1.7.6