[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] vmxnet3: Fix reading/writing guest memory sp

From: Dmitry Fleytman
Subject: Re: [Qemu-devel] [PATCH v2] vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU
Date: Tue, 21 Jun 2016 09:21:59 +0300

> On 20 Jun 2016, at 16:50 PM, KarimAllah Ahmed <address@hidden> wrote:
> When a PCI device lives behind an IOMMU, it should use 'pci_dma_*' family of
> functions when any transfer from/to guest memory is required while
> 'cpu_physical_memory_*' family of functions completely bypass any MMU/IOMMU in
> the system.
> vmxnet3 in some places was using 'cpu_physical_memory_*' family of functions
> which works fine with the default QEMU setup where IOMMU is not enabled but
> fails miserably when IOMMU is enabled. This commit converts all such instances
> in favor of 'pci_dma_*’

Acked-by: Dmitry Fleytman <address@hidden <mailto:address@hidden>>

> Cc: Dmitry Fleytman <address@hidden>
> Cc: Jason Wang <address@hidden>
> Cc: address@hidden
> Cc: Anthony Liguori <address@hidden>
> Signed-off-by: KarimAllah Ahmed <address@hidden>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]