vmw_pvscsi: use PCI DMA APIs
commit0dc40f28518dee8aa95abd330a53f06179e71995
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Mar 2015 16:28:13 +0000 (23 17:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Mar 2015 12:38:07 +0000 (25 13:38 +0100)
treea47e1b43a4612a007598d9b40a0cdfc6e464cf95
parent16578c6ffe8c4ee5207ccb9b0c994c1b18bb322d
vmw_pvscsi: use PCI DMA APIs

It is wrong to use address_space_memory directly, because there could be an
IOMMU in the middle.  Passing the entire PVSCSIRingInfo to RS_GET_FIELD
and RS_SET_FIELD makes it easy to go back to the PVSCSIState.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/vmw_pvscsi.c