linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: julien.grall@linaro.org (Julien Grall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/2] Avoid to use Xen DMA ops when the device is protected by an IOMMU
Date: Thu, 20 Feb 2014 16:20:32 +0000	[thread overview]
Message-ID: <1392913234-25429-1-git-send-email-julien.grall@linaro.org> (raw)

Hello all

This small patch series allows Xen guest to be used when Xen is programming
the IOMMUs.

For this purpose, I have added a new optional property "protected-devices" which
list the devices protected by an IOMMU.

The first patch create a new helper which will contain Xen specific check
to know if we might need to use swiotlb-xen. The second patch is implementing
the goal of this patch series.

Regards,

Julien Grall (2):
  arm/xen: Introduce need_xen_dma_ops and use it in get_dma_ops
  arm/xen: Don't use xen DMA ops when the device is protected by an
    IOMMU

 Documentation/devicetree/bindings/arm/xen.txt |    2 +
 arch/arm/include/asm/dma-mapping.h            |    5 +-
 arch/arm/include/asm/xen/dma-mapping.h        |   22 ++++++++
 arch/arm/include/asm/xen/hypervisor.h         |    2 -
 arch/arm/xen/enlighten.c                      |   75 +++++++++++++++++++++++++
 5 files changed, 101 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/include/asm/xen/dma-mapping.h

-- 
1.7.10.4

                 reply	other threads:[~2014-02-20 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1392913234-25429-1-git-send-email-julien.grall@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).