[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions
From: |
Benjamin Herrenschmidt |
Subject: |
Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions |
Date: |
Thu, 21 Jun 2012 07:33:36 +1000 |
> > /* DMA access functions */
> > +static inline DMAContext *pci_dma_context(PCIDevice *dev)
> > +{
> > + /* Stub for when we have no PCI iommu support */
> > + return NULL;
> > +}
>
> Why is all of this stuff static inline?
Why not ? Not doing so is gratuitous bloat & overhead....
> > static inline void pci_dma_sglist_init(QEMUSGList *qsg, PCIDevice *dev,
> > diff --git a/qemu-common.h b/qemu-common.h
> > index 8f87e41..80026af 100644
> > --- a/qemu-common.h
> > +++ b/qemu-common.h
> > @@ -264,6 +264,7 @@ typedef struct EventNotifier EventNotifier;
> > typedef struct VirtIODevice VirtIODevice;
> > typedef struct QEMUSGList QEMUSGList;
> > typedef struct SHPCDevice SHPCDevice;
> > +typedef struct DMAContext DMAContext;
>
> Please don't put this in qemu-common.h. Stick it in a dma-specific header.
Hrm, the followup ISA DMA patches from Jason Baron seem to have some
cleanups based on the fact that this is in qemu-common.h :-)
The other typedef's in there don't seem to have any more reason to be
there either to be honest. I can try to move it, I don't care much :-)
dma.h sounds like the right place ?
Cheers,
Ben.
- Re: [Qemu-devel] [PATCH 09/13] iommu: Add facility to cancel in-use dma memory maps, (continued)
- [Qemu-devel] [PATCH 08/13] iommu: Introduce IOMMU emulation infrastructure, Benjamin Herrenschmidt, 2012/06/19
- [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Benjamin Herrenschmidt, 2012/06/19
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Anthony Liguori, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Michael S. Tsirkin, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Anthony Liguori, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Michael S. Tsirkin, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Anthony Liguori, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Michael S. Tsirkin, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions,
Benjamin Herrenschmidt <=
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Michael S. Tsirkin, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Anthony Liguori, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, David Gibson, 2012/06/20
- Re: [Qemu-devel] [PATCH 03/13] iommu: Add universal DMA helper functions, Benjamin Herrenschmidt, 2012/06/21
[Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, Benjamin Herrenschmidt, 2012/06/19
- Re: [Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, Gerd Hoffmann, 2012/06/19
- Re: [Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, Benjamin Herrenschmidt, 2012/06/19
- Re: [Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, David Gibson, 2012/06/19
- Re: [Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, Benjamin Herrenschmidt, 2012/06/19
- Re: [Qemu-devel] [PATCH 07/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers, David Gibson, 2012/06/20