hw/scsi/spapr_vscsi: Introduce req_iu() helper
commit81e705494f2915b7b6174bc5695d19ee4a083a85
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 12:12:50 +0000 (5 13:12 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 17 Mar 2020 04:08:50 +0000 (17 15:08 +1100)
tree05e27356a4cdc7a6bbc420d70fd3ea90e193be63
parent06109ab34edd59a853efede87d0296aa0c9b1105
hw/scsi/spapr_vscsi: Introduce req_iu() helper

Introduce the req_iu() helper which returns a pointer to
the viosrp_iu union held in the vscsi_req structure.
This simplifies the next patch.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200305121253.19078-5-philmd@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/scsi/spapr_vscsi.c