On 2016年06月21日 14:21, Dmitry Fleytman wrote:
On 20 Jun 2016, at 16:50 PM, KarimAllah Ahmed <karah...@amazon.de
<mailto:karah...@amazon.de>> 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 <dmi...@daynix.com <mailto:dmi...@daynix.com>>
Applied to -net. Thanks
Cc: Dmitry Fleytman <dmi...@daynix.com <mailto:dmi...@daynix.com>>
Cc: Jason Wang <jasow...@redhat.com <mailto:jasow...@redhat.com>>
Cc: qemu-devel@nongnu.org <mailto:qemu-devel@nongnu.org>
Cc: Anthony Liguori <aligu...@amazon.com <mailto:aligu...@amazon.com>>
Signed-off-by: KarimAllah Ahmed <karah...@amazon.de
<mailto:karah...@amazon.de>>
—
...