* [Qemu-devel] [PATCH] scsi-generic: Add reset handler
@ 2010-09-30 5:07 Nicholas A. Bellinger
0 siblings, 0 replies; only message in thread
From: Nicholas A. Bellinger @ 2010-09-30 5:07 UTC (permalink / raw)
To: Paul Brook, Jan Kiszka, Kevin Wolf, Gerd Hoffmann
Cc: kvm-devel, qemu-devel, Nicholas Bellinger, FUJITA Tomonori,
Hannes Reinecke, Matthew Wilcox
From: Nicholas Bellinger <nab@linux-iscsi.org>
This patch adds NOP scsi_generic_reset() caller to fix an OOPs
which is expected to be set by hw/lsi53895a.c code for both
scsi-disk and scsi-generic operation.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
hw/scsi-generic.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
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,
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-30 5:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 5:07 [Qemu-devel] [PATCH] scsi-generic: Add reset handler Nicholas A. Bellinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).