Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Gavin Shan
On Fri, Jun 06, 2014 at 09:40:56AM +1000, Alexey Kardashevskiy wrote: >On 06/06/2014 05:27 AM, Alex Williamson wrote: >> On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: >>> To perform DMA mapping via TCE table correctly, the guest must >>> know where DMA window is located on the PCI

Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Alexey Kardashevskiy
On 06/06/2014 05:27 AM, Alex Williamson wrote: > On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: >> To perform DMA mapping via TCE table correctly, the guest must >> know where DMA window is located on the PCI bus. A hypervisor is >> expected to provide such information. Since QEMU h

Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Alex Williamson
On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: > To perform DMA mapping via TCE table correctly, the guest must > know where DMA window is located on the PCI bus. A hypervisor is > expected to provide such information. Since QEMU has no control > over this setting, we need a way to

[Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-04 Thread Alexey Kardashevskiy
To perform DMA mapping via TCE table correctly, the guest must know where DMA window is located on the PCI bus. A hypervisor is expected to provide such information. Since QEMU has no control over this setting, we need a way to obtain a start address and size from the host VFIO driver. This adds a