[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/14] Generic DMA memory access interface
From: |
Eduard - Gabriel Munteanu |
Subject: |
Re: [Qemu-devel] [PATCH 01/14] Generic DMA memory access interface |
Date: |
Thu, 2 Jun 2011 22:59:51 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jun 02, 2011 at 12:28:53PM -0700, Richard Henderson wrote:
> On 06/02/2011 10:35 AM, Eduard - Gabriel Munteanu wrote:
> > My latest patches seem to have fixed that:
> >
> > + if (plen < *len) {
> > + *len = plen;
> > + }
> > +
> > + buf = cpu_physical_memory_map(paddr, len, is_write);
>
> No, len is (or was in previous patches) dma_addr_t which
> is not the same as target_phys_addr_t.
>
> Which is why plen was used before, because it was the
> right type.
Ah, indeed, this is a bug. It probably slipped through because the
pointers are compatible on x86-64. Thanks for pointing it out.
Eduard
> r~
[Qemu-devel] [PATCH 10/14] lsi53c895a: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 09/14] e1000: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 08/14] es1370: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 05/14] rtl8139: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 07/14] ac97: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 03/14] AMD IOMMU emulation, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 11/14] pcnet: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 14/14] Make spapr tces use generic dma layer, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 12/14] usb-uhci: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 06/14] eepro100: use the DMA memory access interface, David Gibson, 2011/06/02