diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-30 17:31:43 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-12 16:44:57 +0100 |
commit | dd72fdd06268860a24f9f3828efade547ee2e2a9 (patch) | |
tree | 708c36fb538cb0935adbf5e22f5ed241dc2632c6 /hw | |
parent | 9e11908f12f92e31ea94dc2a4c962c836cba9f2a (diff) | |
download | qemu-dd72fdd06268860a24f9f3828efade547ee2e2a9.zip qemu-dd72fdd06268860a24f9f3828efade547ee2e2a9.tar.gz qemu-dd72fdd06268860a24f9f3828efade547ee2e2a9.tar.bz2 |
virtio-scsi: use dma_context_memory
Until address_space_rw was introduced, NULL was accepted as a
placeholder for DMA with no IOMMU (to address_space_memory).
This does not work anymore, and dma_context_memory needs to
be specified explicitly.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 30d3f8a..7d546f6 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -204,7 +204,7 @@ static void virtio_scsi_bad_req(void) static void qemu_sgl_init_external(QEMUSGList *qsgl, struct iovec *sg, hwaddr *addr, int num) { - memset(qsgl, 0, sizeof(*qsgl)); + qemu_sglist_init(qsgl, num, &dma_context_memory); while (num--) { qemu_sglist_add(qsgl, *(addr++), (sg++)->iov_len); } |