qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Eric Auger <eric.auger@redhat.com>,
	eric.auger.pro@gmail.com, peter.maydell@linaro.org,
	alex.williamson@redhat.com, mst@redhat.com, qemu-arm@nongnu.org,
	qemu-devel@nongnu.org, jean-philippe.brucker@arm.com
Cc: wei@redhat.com, kevin.tian@intel.com, bharat.bhushan@nxp.com,
	marc.zyngier@arm.com, tn@semihalf.com, will.deacon@arm.com,
	drjones@redhat.com, robin.murphy@arm.com,
	christoffer.dall@linaro.org
Subject: Re: [Qemu-devel] [RFC 0/8] VIRTIO-IOMMU device
Date: Wed, 7 Jun 2017 17:17:13 +0800	[thread overview]
Message-ID: <03f4d3b6-a678-56b8-4320-ac002dfeeb8d@redhat.com> (raw)
In-Reply-To: <1496824556-1883-1-git-send-email-eric.auger@redhat.com>



On 2017年06月07日 16:35, Eric Auger wrote:
> This series implements the virtio-iommu device. This is a proof
> of concept based on the virtio-iommu specification written by
> Jean-Philippe Brucker [1]. This was tested with a guest using
> the virtio-iommu driver [2] and exposed with a virtio-net-pci
> using dma ops.
>
> The device gets instantiated using the "-device virtio-iommu-device"
> option. It currently works with ARM virt machine only as the machine
> must handle the dt binding between the virtio-mmio "iommu" node and
> the PCI host bridge node. ACPI booting is not yet supported.
>
> This should allow to start some benchmarking activities against
> pure emulated IOMMU (especially ARM SMMU).

Yes, it would be also interesting to compare it with intel IOMMU. 
Actually the core function is similar to the subset of intel one with CM 
enabled. Since each map and unmap requires a command, it would be very 
slow for dynamic mappings. I wonder whether or not we can do any 
optimization on this.

Thanks

>
> Best Regards
>
> Eric
>
> This series can be found at:
> https://github.com/eauger/qemu/tree/virtio-iommu-rfcv1
>
> References:
> [1] [RFC 0/3] virtio-iommu: a paravirtualized IOMMU,
> [2] [RFC PATCH linux] iommu: Add virtio-iommu driver
> [3] [RFC PATCH kvmtool 00/15] Add virtio-iommu
>
> Eric Auger (8):
>    update-linux-headers: import virtio_iommu.h
>    linux-headers: Update for virtio-iommu
>    virtio_iommu: add skeleton
>    virtio-iommu: Decode the command payload
>    virtio_iommu: Add the iommu regions
>    virtio-iommu: Implement the translation and commands
>    hw/arm/virt: Add 2.10 machine type
>    hw/arm/virt: Add virtio-iommu the virt board
>
>   hw/arm/virt.c                                 | 116 ++++-
>   hw/virtio/Makefile.objs                       |   1 +
>   hw/virtio/trace-events                        |  14 +
>   hw/virtio/virtio-iommu.c                      | 623 ++++++++++++++++++++++++++
>   include/hw/arm/virt.h                         |   5 +
>   include/hw/virtio/virtio-iommu.h              |  60 +++
>   include/standard-headers/linux/virtio_ids.h   |   1 +
>   include/standard-headers/linux/virtio_iommu.h | 142 ++++++
>   linux-headers/linux/virtio_iommu.h            |   1 +
>   scripts/update-linux-headers.sh               |   3 +
>   10 files changed, 957 insertions(+), 9 deletions(-)
>   create mode 100644 hw/virtio/virtio-iommu.c
>   create mode 100644 include/hw/virtio/virtio-iommu.h
>   create mode 100644 include/standard-headers/linux/virtio_iommu.h
>   create mode 100644 linux-headers/linux/virtio_iommu.h
>

  parent reply	other threads:[~2017-06-07  9:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-07  8:35 [Qemu-devel] [RFC 0/8] VIRTIO-IOMMU device Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 1/8] update-linux-headers: import virtio_iommu.h Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 2/8] linux-headers: Update for virtio-iommu Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 3/8] virtio_iommu: add skeleton Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 4/8] virtio-iommu: Decode the command payload Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 5/8] virtio_iommu: Add the iommu regions Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 6/8] virtio-iommu: Implement the translation and commands Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 7/8] hw/arm/virt: Add 2.10 machine type Eric Auger
2017-06-07  8:35 ` [Qemu-devel] [RFC 8/8] hw/arm/virt: Add virtio-iommu the virt board Eric Auger
2017-06-07  9:17 ` Jason Wang [this message]
2017-06-07 10:19   ` [Qemu-devel] [RFC 0/8] VIRTIO-IOMMU device Jean-Philippe Brucker
2017-06-08  8:35     ` Jason Wang
2017-06-07 15:00 ` no-reply
2017-06-07 15:51   ` Auger Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03f4d3b6-a678-56b8-4320-ac002dfeeb8d@redhat.com \
    --to=jasowang@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=bharat.bhushan@nxp.com \
    --cc=christoffer.dall@linaro.org \
    --cc=drjones@redhat.com \
    --cc=eric.auger.pro@gmail.com \
    --cc=eric.auger@redhat.com \
    --cc=jean-philippe.brucker@arm.com \
    --cc=kevin.tian@intel.com \
    --cc=marc.zyngier@arm.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=robin.murphy@arm.com \
    --cc=tn@semihalf.com \
    --cc=wei@redhat.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).