From: Keir Fraser <keir@xen.org>
To: Jean Guyader <jean.guyader@eu.citrix.com>, xen-devel@lists.xensource.com
Cc: allen.m.kay@intel.com, tim@xen.org, JBeulich@suse.com
Subject: Re: [PATCH 0/6] IOMMU, vtd and iotlb flush rework (v8)
Date: Thu, 17 Nov 2011 09:20:18 +0000 [thread overview]
Message-ID: <CAEA8252.343B3%keir@xen.org> (raw)
In-Reply-To: <1321471508-31633-1-git-send-email-jean.guyader@eu.citrix.com>
On 16/11/2011 19:25, "Jean Guyader" <jean.guyader@eu.citrix.com> wrote:
>
> In one of my previous email I detailed a bug I was seeing when passing
> through a Intel GPU on a guest that has more that 4G or RAM.
>
> Allen suggested that I go for the Plan B but after a discussion with Tim
> we agreed that Plan B was way to disruptive in term of code change.
>
> This patch series implements Plan A.
I'll check these in when they get an Ack from Jan.
-- Keir
> http://xen.1045712.n5.nabble.com/VTD-Intel-iommu-IOTLB-flush-really-slow-td495
> 2866.html
>
> Changes between v7 and v8:
> - Rebase on new add_to_physmap from Andres Lagar-Cavilla
> - Only do copy_to_guest on the new XENMAPSPACE
> (XENMAPSPACE_gmfn_range).
> - Convert the xatp argument to a pointer in xenmem_add_to_physmap.
> - Modify xenmem_add_to_physmap so it doesn't touchs the input (xatp is
> const now).
>
> Changes between v6 and v7:
> - xenmem_add_to_physmap_once can't take a pointer on xatp because
> it modifies .idx and .gpfn.
> - Cancel hypercall continuation in the compat layer if the
> copy_to_guest
> failed.
>
> Changes between v5 and v6:
> - Rework the patch queue to make it more readable.
> - Modify xatp in place in xenmem_add_to_physmap
> - Only check for preemption if we are not at the last iteration
> - Copy xatp guest handler back to the guest only in case of continuation
> - Add continuation only when dealing with the new xenmem space
> (XENMAPSPACE_gmfn_range).
>
> Changes between v4 and v5:
> - Fix hypercall continuation for add_to_physmap in compat mode.
>
> Changes between v3 and v4:
> - Move the loop for gmfn_range from arch_memory_op to
> xenmem_add_to_physmap.
> - Add a comment to comment to explain the purpose of
> iommu_dont_flush_iotlb.
>
> Changes between v2 and v3:
> - Check for the presence iotlb_flush_all callback before calling it.
>
> Changes between v1 and v2:
> - Move size in struct xen_add_to_physmap in padding between .domid and
> .space.
> - Store iommu_dont_flush per cpu
> - Change the code in hvmloader to relocate by batch of 64K, .size is now
> 16 bits.
>
> Jean Guyader (6):
> vtd: Refactor iotlb flush code
> iommu: Introduce iommu_flush and iommu_flush_all.
> add_to_physmap: Move the code for XENMEM_add_to_physmap
> mm: New XENMEM space, XENMAPSPACE_gmfn_range
> hvmloader: Change memory relocation loop when overlap with PCI hole
> Introduce per cpu flag (iommu_dont_flush_iotlb) to avoid unnecessary
> iotlb flush
>
> tools/firmware/hvmloader/pci.c | 20 +++-
> xen/arch/x86/mm.c | 212
> +++++++++++++++++++++++------------
> xen/arch/x86/x86_64/compat/mm.c | 18 +++
> xen/drivers/passthrough/iommu.c | 25 ++++
> xen/drivers/passthrough/vtd/iommu.c | 100 ++++++++++-------
> xen/include/public/memory.h | 4 +
> xen/include/xen/iommu.h | 17 +++
> 7 files changed, 277 insertions(+), 119 deletions(-)
>
next prev parent reply other threads:[~2011-11-17 9:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 19:25 [PATCH 0/6] IOMMU, vtd and iotlb flush rework (v8) Jean Guyader
2011-11-16 19:25 ` [PATCH 1/6] vtd: Refactor iotlb flush code Jean Guyader
2011-11-16 19:25 ` [PATCH 2/6] iommu: Introduce iommu_flush and iommu_flush_all Jean Guyader
2011-11-16 19:25 ` [PATCH 3/6] add_to_physmap: Move the code for XENMEM_add_to_physmap Jean Guyader
2011-11-16 19:25 ` [PATCH 4/6] mm: New XENMEM space, XENMAPSPACE_gmfn_range Jean Guyader
2011-11-16 19:25 ` [PATCH 5/6] hvmloader: Change memory relocation loop when overlap with PCI hole Jean Guyader
2011-11-16 19:25 ` [PATCH 6/6] Introduce per cpu flag (iommu_dont_flush_iotlb) to avoid unnecessary iotlb flush Jean Guyader
2012-08-01 17:55 ` Should we revert "mm: New XENMEM space, XENMAPSPACE_gmfn_range"? Stefano Stabellini
2012-08-01 18:06 ` Keir Fraser
2012-08-02 9:25 ` Jan Beulich
2012-08-01 18:08 ` Tim Deegan
2012-08-02 9:23 ` Jan Beulich
2012-08-02 9:45 ` Attilio Rao
2012-08-02 10:22 ` Jan Beulich
2012-08-02 10:35 ` Attilio Rao
2012-08-02 12:57 ` Attilio Rao
2012-08-02 13:13 ` Stefano Stabellini
2012-08-02 13:36 ` Jan Beulich
2012-08-02 13:38 ` Stefano Stabellini
2011-11-19 21:58 ` [PATCH 3/6] add_to_physmap: Move the code for XENMEM_add_to_physmap Olaf Hering
2011-11-19 22:14 ` Keir Fraser
2011-11-19 22:37 ` Jean Guyader
2011-11-20 13:25 ` Olaf Hering
2011-11-20 19:59 ` Keir Fraser
2011-11-21 8:39 ` Olaf Hering
2011-11-17 9:20 ` Keir Fraser [this message]
2011-11-17 9:42 ` [PATCH 0/6] IOMMU, vtd and iotlb flush rework (v8) Jan Beulich
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=CAEA8252.343B3%keir@xen.org \
--to=keir@xen.org \
--cc=JBeulich@suse.com \
--cc=allen.m.kay@intel.com \
--cc=jean.guyader@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.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).