@@ -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,