mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
f9188227a4
commit
d800040fb4
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue