aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-bus.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-06-03 14:57:06 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-06-05 15:05:35 +0000
commitd800040fb47fe4500d1f8bf604b9fd129bda9419 (patch)
tree82234aa73dcff2b29fec5345025bf1eef42e3a90 /hw/scsi-bus.c
parentf9188227a455446b5c10a8f5114f266001c1c801 (diff)
downloadqemu-d800040fb47fe4500d1f8bf604b9fd129bda9419.zip
qemu-d800040fb47fe4500d1f8bf604b9fd129bda9419.tar.gz
qemu-d800040fb47fe4500d1f8bf604b9fd129bda9419.tar.bz2
scsi: fix tracing of scsi requests with simple backend
The simple backend only supports a maximum of 6 arguments. Split the scsi_req_parsed event in two parts to cope with the limit. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r--hw/scsi-bus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 837f24e..ad6a730 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -413,7 +413,11 @@ int scsi_req_parse(SCSIRequest *req, uint8_t *buf)
scsi_req_xfer_mode(req);
req->cmd.lba = scsi_req_lba(req);
trace_scsi_req_parsed(req->dev->id, req->lun, req->tag, buf[0],
- req->cmd.mode, req->cmd.xfer, req->cmd.lba);
+ req->cmd.mode, req->cmd.xfer);
+ if (req->cmd.lba != -1) {
+ trace_scsi_req_parsed_lba(req->dev->id, req->lun, req->tag, buf[0],
+ req->cmd.lba);
+ }
return 0;
}