diff mbox

scsi-generic: Add reset handler

Message ID 1285823246-6680-1-git-send-email-nab@linux-iscsi.org (mailing list archive)
State New, archived
Headers show

Commit Message

Nicholas A. Bellinger Sept. 30, 2010, 5:07 a.m. UTC
None
diff mbox

Patch

diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 1bb26e7..176fcaf 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -379,6 +379,11 @@  static int scsi_generic_initfn(SCSIDevice *dev)
     return 0;
 }
 
+static void scsi_generic_reset(DeviceState *dev)
+{
+    DPRINTF("scsi_generic_reset\n");
+}
+
 static void scsi_generic_unmap(SCSIGenericReq *r)
 {
     int is_write = !scsi_req_is_write(&r->req);
@@ -552,6 +557,7 @@  static SCSIDeviceInfo scsi_generic_info = {
     .qdev.name    = "scsi-generic",
     .qdev.desc    = "pass through generic scsi device (/dev/sg*)",
     .qdev.size    = sizeof(SCSIGenericState),
+    .qdev.reset   = scsi_generic_reset,
     .init         = scsi_generic_initfn,
     .destroy      = scsi_destroy,