• J
    virtio: convert to use DMA api · 8607f5c3
    Jason Wang 提交于
    Currently, all virtio devices bypass IOMMU completely. This is because
    address_space_memory is assumed and used during DMA emulation. This
    patch converts the virtio core API to use DMA API. This idea is
    
    - introducing a new transport specific helper to query the dma address
      space. (only pci version is implemented).
    - query and use this address space during virtio device guest memory
      accessing when iommu platform (VIRTIO_F_IOMMU_PLATFORM) was enabled
      for this device.
    
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Cc: Stefan Hajnoczi <stefanha@redhat.com>
    Cc: Kevin Wolf <kwolf@redhat.com>
    Cc: Amit Shah <amit.shah@redhat.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: qemu-block@nongnu.org
    Signed-off-by: NJason Wang <jasowang@redhat.com>
    Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    8607f5c3
virtio-serial-bus.c 33.5 KB