[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] Fix vmw_pvscsi.c for iommu support changes
From: |
David Gibson |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] Fix vmw_pvscsi.c for iommu support changes |
Date: |
Fri, 26 Apr 2013 21:04:01 +1000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Apr 26, 2013 at 10:19:55AM +0200, Paolo Bonzini wrote:
> Il 26/04/2013 08:02, David Gibson ha scritto:
> > vmw_pvscsi.c directly calls pci_dma_sglist_init() instead of using the
> > helper for PCI devices, which means it was broken by Paolo Bonzini's
> > recent addition of iommu support to the memory API. This fixes it.
> >
> > Signed-off-by: David Gibson <address@hidden>
> > ---
> > hw/scsi/vmw_pvscsi.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
> > index 4b4a58f..68c8d58 100644
> > --- a/hw/scsi/vmw_pvscsi.c
> > +++ b/hw/scsi/vmw_pvscsi.c
> > @@ -617,7 +617,7 @@ pvscsi_build_sglist(PVSCSIState *s, PVSCSIRequest *r)
> > {
> > PCIDevice *d = PCI_DEVICE(s);
> >
> > - qemu_sglist_init(&r->sgl, 1, pci_dma_context(d));
> > + pci_dma_sglist_init(&r->sgl, d, 1);
> > if (r->req.flags & PVSCSI_FLAG_CMD_WITH_SG_LIST) {
> > pvscsi_convert_sglist(r);
> > } else {
> >
>
> Thanks for the heads-up. Though maybe it should just bypass the IOMMU
> like virtio, I'll think about it.
Well, maybe. virtio shouldn't really bypass the iommu, that's
basically a historical bug in the specification.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: Digital signature
- [Qemu-devel] [0/4] RFC: Preparations for VFIO and guest IOMMUs (v2), David Gibson, 2013/04/26
- [Qemu-devel] [PATCH 1/4] Fix vmw_pvscsi.c for iommu support changes, David Gibson, 2013/04/26
- [Qemu-devel] [PATCH 2/4] vfio: Associate VFIO groups with (guest) IOMMU address spaces, David Gibson, 2013/04/26
- [Qemu-devel] [PATCH 4/4] vfio: Only use memory listeners when appropriate, David Gibson, 2013/04/26
- [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, David Gibson, 2013/04/26
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, Paolo Bonzini, 2013/04/26
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, David Gibson, 2013/04/26
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, Paolo Bonzini, 2013/04/26
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, David Gibson, 2013/04/27
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, Paolo Bonzini, 2013/04/27
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, David Gibson, 2013/04/27
- Re: [Qemu-devel] [PATCH 3/4] vfio: Move container list to iommu MemoryRegion, Paolo Bonzini, 2013/04/29