qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: David Kiarie <davidkiarie4@gmail.com>
Cc: qemu-devel@nongnu.org, marcel@redhat.com, mst@redhat.com,
	peterx@redhat.com, valentine.sinitsyn@gmail.com,
	jan.kiszka@web.de, ehabkost@redhat.com
Subject: Re: [Qemu-devel] [V13 3/4] hw/i386: Introduce AMD IOMMU
Date: Fri, 8 Jul 2016 10:30:41 -0600	[thread overview]
Message-ID: <20160708103041.40862960@t450s.home> (raw)
In-Reply-To: <1467965903-22766-4-git-send-email-davidkiarie4@gmail.com>

On Fri,  8 Jul 2016 11:18:22 +0300
David Kiarie <davidkiarie4@gmail.com> wrote:

> Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU.
> The IOMMU does basic translation, error checking and has a
> minimal IOTLB implementation. This IOMMU bypassed the need
> for target aborts by responding with IOMMU_NONE access rights
> and exempts the region 0xfee00000-0xfeefffff from translation
> as it is the q35 interrupt region.
> 
> We advertise features that are not yet implemented to please
> the Linux IOMMU driver.
> 
> IOTLB aims at implementing commands on real IOMMUs which is
> essential for debugging and may not offer any performance
> benefits
> 
> Signed-off-by: David Kiarie <davidkiarie4@gmail.com>
> ---
>  hw/i386/Makefile.objs |    1 +
>  hw/i386/amd_iommu.c   | 1384 +++++++++++++++++++++++++++++++++++++++++++++++++
>  hw/i386/amd_iommu.h   |  285 ++++++++++
>  3 files changed, 1670 insertions(+)
>  create mode 100644 hw/i386/amd_iommu.c
>  create mode 100644 hw/i386/amd_iommu.h

Hi,

Please consider an update or follow-on patch which adds something
similar to:

commit 3cb3b1549f5401dc3a5e1d073e34063dc274136f
Author: Alex Williamson <alex.williamson@redhat.com>
Date:   Thu Jun 30 13:00:24 2016 -0600

    intel_iommu: Throw hw_error on notify_started

http://git.qemu.org/?p=qemu.git;a=commit;h=3cb3b1549f5401dc3a5e1d073e34063dc274136f

This would simply make amd_iommu incompatible with device assignment
until someone tackles adding the proper code to support it.  Thanks,

Alex

  reply	other threads:[~2016-07-08 16:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  8:18 [Qemu-devel] [V13 0/4] AMD IOMMU David Kiarie
2016-07-08  8:18 ` [Qemu-devel] [V13 1/4] hw/pci: Prepare for " David Kiarie
2016-07-08  8:18 ` [Qemu-devel] [V13 2/4] hw/i386/trace-events: Add AMD IOMMU trace events David Kiarie
2016-07-08  8:18 ` [Qemu-devel] [V13 3/4] hw/i386: Introduce AMD IOMMU David Kiarie
2016-07-08 16:30   ` Alex Williamson [this message]
2016-07-11  6:10     ` David Kiarie

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=20160708103041.40862960@t450s.home \
    --to=alex.williamson@redhat.com \
    --cc=davidkiarie4@gmail.com \
    --cc=ehabkost@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=marcel@redhat.com \
    --cc=mst@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=valentine.sinitsyn@gmail.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).